- Locate ptolemy/vergil/VergilApplication in the Explorer and
double click. Place a breakpoint on the first line of main()
by using
Run
| Add/Remove Breakpoint
- Tell Eclipse which class to run with
Run
| Debug As
. On the Main tab, select the Ptolemy II package
and enter ptolemy.vergil.VergilApplication as Main class.
- Press the Run button and make sure Vergil starts up.
- To debug, quit Vergil, and set a breakpoint:
- Use the Package Explorer to browse to ptolemy.domains.continuous.kernel.ContinuousDirector
- Find the fire() method.
- Right click in the left margin next to the first line of the fire() method and select Toggle Breakpoint.
- Then
Run
| Debug
, and
as above. In Vergil, open the Lorenz Continuo demo from the Quick Tour: Tour | complete list of all demos | Continuous | Lorenze and then run the demo.
- The model will run until the fire() method and the the Java debugger view will appear.
See also Eclipse Notes