Debbuging

Few words on how does it work

If we want to analyze how does the application work step by step we have to use Debbuger. In order to do that we have to select the particular line / lines on which the program has to stop.

And then we hit the Run & Debug button.

During the execution flow when the debbuger interrups we have the following choinces:

  1. Continue (move to another breakpoint)

Breaks the current stop and proceed to another breakpoint

  1. Step over (better for general testing)

Executes the current line of code and moves to the next line in the same function.

  1. Step into (better for precise testing)

Executes the current line, but if there is a function call, it goes inside that function and pauses at the first line inside it.

  1. Step out (quit the precise testing of the particular function)

If you’re currently inside a function, this command runs the rest of the current function and stops at the next line after the function call in the calling function.

  1. Restart

Restarts the program.

  1. Stop

Stops the debbuging process and the program itself.

Last updated