Skip to content

Commit c0bf25b

Browse files
committed
docs: improve breakpoint exception doc
Signed-off-by: azerr <[email protected]>
1 parent befc384 commit c0bf25b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

docs/dap/UserGuide.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ are based on the default configuration provided by the DAP server.
7676

7777
You can then select or deselect the exception breakpoints you want to use.
7878

79+
Take a sample JavaScript file containing an error:
80+
81+
![DAP exception breakpoint / Syntax error](./images/DAP_exception_breakpoint_sample.png)
82+
83+
In this example, no breakpoints are defined.
84+
However, when you start the DAP server, it stops at the line with the line error:
85+
86+
![DAP exception breakpoint / Syntax error](./images/DAP_exception_breakpoint_sample_stop.png)
87+
88+
This happens because `Caught Exceptions` is selected.
89+
7990
## Inline value
8091

8192
The values of the variables are displayed inline, but this is not perfect because a DAP server generally cannot handle variable positions (only their values).
Loading
Loading

0 commit comments

Comments
 (0)