jGRASP editorsyncrasies idiosyncrasies - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

jGRASP editorsyncrasies idiosyncrasies

Description:

Now pressing the tab key will insert 4 spaces (and existing tabs will be converted to 4 space) ... A primitive way of debugging is to insert print statements. ... – PowerPoint PPT presentation

Number of Views:91
Avg rating:3.0/5.0
Slides: 11
Provided by: georgejgr
Category:

less

Transcript and Presenter's Notes

Title: jGRASP editorsyncrasies idiosyncrasies


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.

3
(No Transcript)
4
after
before
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.
  • Thats 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 -gt 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
Write a Comment
User Comments (0)
About PowerShow.com