Skip to content

Commit 140c0e0

Browse files
JPeer264sindresorhus
authored andcommitted
Docs: Extend VSCode debugging notes (#1389)
1 parent cd8ffef commit 140c0e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/recipes/debugging-with-vscode.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Save this configuration after you added it.
2828

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

3335
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 commit comments

Comments
 (0)