jGRASP editor-syncrasies (idiosyncrasies) And an introduction to the debugger
The jGRASP editor Problem: Indentation seems to befuddle the jGRASP editor. Solution: Tell jGRASP to use spaces instead of tabs.
before after Check Soft Tabs and set the Tab Size to 4. Click Apply and then OK. Now pressing the tab key will insert 4 spaces (and existing tabs will be converted to 4 space).
The debugger
Using the debugger A primitive way of debugging is to insert print statements. That’s OK but a debugger is much more powerful. It allows us to execute our code one line at a time. It allows us to set breakpoints (stop points) in our code. We can even examine and change the contents of variables as our program runs.
Setting a breakpoint
Breakpoint is now set
Start the debugger Build -> Debug The program then runs and stops at our first breakpoint.
step over step in step out variables (r-click to change value) next line to be executed end debugging