1 / 7

Intro to Debugging

SBE201 – Data Structures and Algorithms in C. Intro to Debugging. Marwan H. Hussein, TA B.Sc., Systems & Biomedical Engineering Department, Cairo University Egypt. C ontents. Potential of debugging Features of a typical debugger. Potential of debugging.

Download Presentation

Intro to Debugging

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SBE201 – Data Structures and Algorithms in C Intro to Debugging Marwan H. Hussein, TA B.Sc., Systems & Biomedical Engineering Department, Cairo University Egypt

  2. Contents • Potential of debugging • Features of a typical debugger

  3. Potential of debugging • Imagine there’s a big code that you want to know many intermediate values of its variables while its running.. • You can use printf() several time, but this is going to be time consuming

  4. A Debugger • A debugger is a program (separate from the compiler & linker) that allows you to run your binaries while giving you the ability of a ProgramCntr!!  • Like compilers, many debuggers exist: • VS debugger • GNU debugger (what we gonna use  open source)

  5. Abilities of a debugger • Continuous running • But stopping @ breakpoints • Single stepping • Step over • Step into • Step out • Function call stack • Several other things (advanced) Let’s see this in Eclipse

  6. drills • For pointers on 32-bit OS • Why pointer values appear in 8 numbers? • For call stack What you think this is ??

  7. Gdb shortcuts

More Related