Lab Exercise 1 CPP - SVF-tools/Software-Security-Analysis GitHub Wiki

Configuration && debugging

launch.json

To enable debugging and running, switch your executable by setting the program and args fields as described here or follow the below screenshot.

width=800px

Debug your code

*If there is an assertion or unexpected output, you will need to debug and find bugs.

Step 1: Set the breakpoint where you want to stop your program and press the 'debug' button

width=800px

Step 2: 'Step over' /'Step in' / 'Step out'

  • 'Step over' to the next step of your program
  • 'Step in' to the current line of your program
  • 'Step out' to mainstream of your program where you stepped in before

width=800px

Step 3: During your debugging, you can also watch the value of a variable you are interested in.


More information about C++