-
Click on the debug Icon on the left/right menu bar in
vscode. -
Click on the play button next to
RUN AND DEBUGto start debugger.
For Attach Docker Debugging configuration, you would require
Docker Desktopto be running. For best experience, have Docker Extension installed.
-
Once you plug in debugger you would get below toolbar on the top center of you pane.
-
Use below controls to Debug your code.
Action Explanation Continue / Pause F5Continue: Resume normal program/script execution (up to the next breakpoint). Pause: Inspect code executing at the current line and debug line-by-line. Step Over F10Execute the next method as a single command without inspecting or following its component steps. Step Into F11Enter the next method to follow its execution line-by-line. Step Out ⇧F11When inside a method or subroutine, return to the earlier execution context by completing remaining lines of the current method as though it were a single command. Restart ⇧⌘F5Terminate the current program execution and start debugging again using the current run configuration. Stop ⇧F5Terminate the current program execution. -
For more info, you can refer
VSCode Official Docs.
Happy Debugging ! 😀


