Download presentation
Presentation is loading. Please wait.
Published byAustin Blake Summers Modified over 5 years ago
1
jGRASP editor-syncrasies (idiosyncrasies)
And an introduction to the debugger
2
The jGRASP editor Problem: Indentation seems to befuddle the jGRASP editor. Solution: Tell jGRASP to use spaces instead of tabs.
4
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).
5
The debugger
6
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.
7
Setting a breakpoint
8
Breakpoint is now set
9
Start the debugger Build -> Debug
The program then runs and stops at our first breakpoint.
10
step over step in step out variables (r-click to change value) next line to be executed end debugging
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.