Hints on debugging
Download
1 / 4

Hints on debugging - PowerPoint PPT Presentation


  • 145 Views
  • Uploaded on

Hints on debugging. http://www.cse.ust.hk/~bwuaa/teaching.html. Procedure of debugging. 1. Set debugging point 2. Run the program 3. The program will stop at the debugging point (otherwise something must be wrong before your debugging point).

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Hints on debugging' - oliana


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Hints on debugging

Hints on debugging

http://www.cse.ust.hk/~bwuaa/teaching.html


Procedure of debugging
Procedure of debugging

  • 1. Set debugging point

  • 2. Run the program

  • 3. The program will stop at the debugging point (otherwise something must be wrong before your debugging point).

  • 4. Point to variables you want to check (use the mouse).

  • 5. Continue, pause, and stop


Continue pause and stop
Continue, pause, and stop

  • Continue: go to the next debugging point (or ends the program if there’s no more point).

  • Pause: pause the program at where it is (you can try it in an infinite loop).

  • Stop: ends the program and the debugging.

    • When you cannot run the program, you should try to stop the program first.


Debug when the program asks you so
Debug when the program asks you so

  • Click debug if you encounter:

  • Then:


ad