Attach source code to Jprofiler

2019-07-06 21:43发布

问题:

I am new to using JProfiler. I am profiling remotely on an application. When iI click on show source for any object, it says "Source file could not be found in source path" as there are only binaries on remote machine. Is there someway I can link the source code. FYI, I have access to code which i can make use of.

回答1:

In JProfiler's main menu, select "Session->Session Settings" (while the session is running). On the "Application settings" tab, select the "Source path" radio button and add your source roots to the list on the right side.