Debug an application
From BUG Wiki
These steps use the Hello World application created here as an example.
To create a breakpoint in a BUG application and step through code:
- In Dragonfly, in the Project Explorer, open the Hello World > helloworld node and double-click the Activator.java file to edit it.
- In the line of code:
System.out.println("Hello World :)");
right-click in the line's left margin and select Toggle Breakpoint.
A blue dot appears in margin to indicate a toggled breakpoint. - In the Project Explorer, right-click on Hello World project and select Debug As > Virtual BUG.
Eclipse displays a dialog box asking if you want to switch perspectives. - Click Yes.
In the Debug Perspective, the Java editor highlights the breakpointed line. - Press F8.
- Confirm that the application output in the Console view.
- For documentation on debugging in Eclipse Classic, click here.
