dotTrace Web Help

dotTrace Performance automatically locates the underlying source code for selected functions. To make the source code visible in dotTrace Performance, let it know where .pdb files for your project are located, or specify path to the source code.

To view source code
  • Do one of the following:
    • On the menu bar, choose View | Source Preview | Right or View | Source Preview | Bottom.
    • Click Source Preview ico_preview on the toolbar.
    • Press Alt+F2.
To hide source code
  • Do one of the following:
    • On the menu bar, choose View | Source Preview | Hide.
    • Click Source Preview ico_preview on the toolbar.
    • Press Alt+F2.

Note

You can't view source code if an application created under .NET Framework 1.1 is profiled under .NET Framework 2.0.

Studying_Profiling_Results__Previewing_Source_Code__Source_Code

If you need to debug your code at a low level or for some other reason examine the code emitted by the compiler, you can easily do it right in View Code.

To view IL code
  1. Select a function.
  2. Open sources
  3. Select the Show IL Code check box in View Code.

IL code is displayed under each code statement.
Studying_Profiling_Results__Previewing_Source_Code__IL_Code
For more details, see View Code.

Sometimes source code is not available right here right now, however dotTrace Performance can recreate source code close to original using a built-in decompiler.

To view decompiled code
  1. Select a function.
  2. Open sources
  3. Click Decompiled source in View Code.
  4. In order to enable code decompiling, do one of the following:
    • Select the I accept the terms of the license agreement, allow to decompile check box and click Apply.
    • On the menu bar, choose View | Options. The Options dialog box opens. Select the Decompiler node on the left pane. Select the I accept the terms of the license agreement, allow to decompile check box in the right pane, then click Save to apply changes.
  5. The corresponding decompiled code is immediately displayed.

See Also

Procedures: