Presentation is loading. Please wait.

Presentation is loading. Please wait.

Productive Debugging With Eclipse Photon

Similar presentations


Presentation on theme: "Productive Debugging With Eclipse Photon"— Presentation transcript:

1 Productive Debugging With Eclipse Photon
Sarika Sinha Committer Platform and JDT Eclipse Projects, Co-Lead Eclipse JDT Project

2 Agenda Upcoming features in Photon Exciting features added in Oxygen
Java 9 runtime and debugging options in Eclipse Smart Debugging tips

3 Upcoming features in Photon
Launch Configuration Prototype New Prototype

4 Upcoming features in Photon
Launch Configuration Prototype Linking Configuration to prototype

5 Upcoming features in Photon
Advanced Source Lookup The advanced source lookup provides correct source lookup when exact runtime class path is not known in advance. Advanced Source lookup will only be available for Debug launching. It can be enabled by turning on the preference.

6 Upcoming features in Photon
Java 9 runtime New module options module, module-path, upgrade-module-path, add-modules, limit- modules, patch-module, add-exports, list-modules New diagnostic options Xdiag:resolver, Dsun.reflect.debugModuleAccessChecks, Xlog:modules Unsupported options bootclasspath, Xbootclasspath, extdirs, endorsedirs and XXUserPathsFirst

7 Upcoming features in Photon
Java 9 runtime Launch Configuration Impact – Dependencies Tab with “Modulepath Entries” & “Classpath Entries”

8 Exciting features in Oxygen
Trigger Points Triggers are rendered with an overlay of "T" and the breakpoints suppressed by the triggers will be rendered with an overlay of "T" with a cut. All the other breakpoints that are initially suppressed by triggers will be hit only after any of the trigger points has been hit. All the triggers are disabled after a trigger point is hit and will be re-enabled after the run.

9 Exciting features in Oxygen
Launch Group- The new Launch Group launch configuration type allows you to launch multiple other launch configurations sequentially, with configurable actions.

10 Exciting features in Oxygen
Return value from Step Operation During debugging, the last method result (per return or throw) that was observed during Step Into, Step Over or Step Return, is shown as first line in the Variables view. Sorting of Breakpoints by age - In the Breakpoints view's view menu, a new Sort By option has been added. This allows sorting by two ways: Name & Creation Time.

11 Exciting features in Photon
Tracepoint Action The action creates a conditional breakpoint using the "systrace" template, which prints the class and method name.

12 Smart Debugging tips Run to Line Smart Step Into methods Step Filters
Organizing Breakpoints Logical structure for variables Executing snippets - Display view, Expression view, Scrapbook page Overlapping Annotations with breakpoint Terminate and Relaunch Configuration

13 Smart Debugging Tips Run to Line ( Ctrl + R) – Executes the program to the currently selected line in the editor.

14 Smart Debugging Tips Stepping Commands

15 Smart Debugging Tips Organizing Breakpoints – Breakpoints can be organized by putting them in different breakpoint working sets. A working set can be enabled/disabled as a group. By default all breakpoints goes to the default un named working set.

16 Smart Debugging Tips Logical Structure for Variables– In the Variables view, collection objects directly show their contained elements instead of their internal structure. Show Logical Structure can be turned off to show the internal structure.

17 Smart Debugging Tips Executing snippet – Snippets can be executed in Display view, Expression view or Scrapbook page.

18 Smart Debugging Tips Overlapping Annotations with Breakpoint – Turn off Warning to show in Vertical Ruler to avoid overlapping of Annotations with Warnings.

19 Smart Debugging Tips Terminate and Relaunch Configuration – Configuration can be relaunched after terminating the current launch as default and toggle the default preference using Shift.

20 Evaluate the Sessions Sign in and vote at eclipsecon.org - 1 + 1

21 Thank You


Download ppt "Productive Debugging With Eclipse Photon"

Similar presentations


Ads by Google