Skip to content

Commit

Permalink
Docs: Extend VSCode debugging notes (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
JPeer264 authored and sindresorhus committed May 27, 2017
1 parent cd8ffef commit 140c0e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/recipes/debugging-with-vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Save this configuration after you added it.

> **Note:** The file you want to debug, must be open and active
Set breakpoints in the code.
> **Note:** The breakpoints in VSCode are a bit buggy sometimes (especially with async code). `debugger;` always works fine.
Set breakpoints in the code **or** write `debugger;` at the point where it should stop.

Hit the green `Debug` button next to the list of configurations on the top left in the `Debug` view. Once the breakpoint is hit, you can evaluate variables and step through the code.

0 comments on commit 140c0e0

Please sign in to comment.