In the Annotated Source view, the display of annotations for source code includes a copy of the source code marked with line-level coverage annotations.
To display the Annotated Source view, right-click a profiling resource entry in the Profiling Monitor, then click Coverage Navigator view to display the annotated source code for the class or method.
. Data for the resource must have been collected with a profiling set that included the Method and Line Code Coverage profiling type. Click a class or method in theClicking an entry in the Coverage Navigator at the package level or above displays the source data in the Annotated Source view.
The right margin shows a map of the location of tested (green), untested (red), and partially tested (orange) code. Use this map to scroll to the sections of code that interest you.
Toolbar button | Command | Description |
---|---|---|
Show Source Code with Annotations, or Show Source Data |
Toggles the Annotated Source view to show either the source code with annotations or the source data. |
|
![]() |
Open Source for Editing |
Displays the source code, if available, for the selected item. Source code is available only if you are profiling a Java™ project that is currently open in the Java perspective. |
Context menu | Disable Breakpoint, Enable Breakpoint |
Toggles breakpoints off and on |