50 breakpoint debugging

1, breakpoint debugging refers to himself in a row setup a breakpoint, the debugger, the program will stop running to the line, then you can down step by step debugging, the debugging process can see the current value of each variable , wrong, wrong line of code to debug that is an error, stop. Programs can then be analyzed to this bug, use breakpoints can help us see the final execution of the C source code and improve the level of programmer

2, breakpoint debugging shortcuts

  f5 start debugging, execution to the next breakpoint

  f11 code line by line, enters the body of the function

  f10-by-process execution (functions that encounter, does not enter the body of the function)

  Bounce shift + f11 (out of a function, before the jump, the function to the execution End)

  shift + f5 terminate debugging

3, debugging 1

  

 

     

 

4, debugging 2: array bounds of the case, when the array bounds, outputs an unknown value

      

 

 5, three debugging: debugging into the body of the function, F11 (into the body of the function), shifit + f11 (out of a function)

  

 

 

  

 

Guess you like

Origin www.cnblogs.com/shanlu0000/p/12360832.html