Skip to content

Commit 53007c0

Browse files
Adding some images to the docs
1 parent 39f080f commit 53007c0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@ This repository contains some files to help setup debugging in VSCode.
1818
1. Open VSCode.
1919
2. File -> Open Folder -> Open the cloned repository folder in VSCode.
2020
3. Open `main.nim`.
21-
4. Set a breakpoint.
21+
4. Set a breakpoint on line 15 in the file:
22+
23+
![setting a breakpoint in main.nim on line 15](images/vscode-set-breakpoint.png)
24+
2225
5. Build the code (ctrl-shift-b), which should use the build definition in `.vscode/tasks.json`.
26+
My preference is to set "Build on Save" in the VSCode-Nim configuration:
27+
28+
![setting build on save in vscode-nim](images/vscode-nim-config.png)
29+
2330
5. Debug -> Start Debugging, which should use the launch config in `.vscode/launch.json`.
2431
6. Once the breakpoint is hit, let's enable pretty-printing. Otherwise, when you mouse over a
2532
symbol in the debugger, you'll see memory addresses instead of values.

images/vscode-nim-config.png

45.8 KB
Loading

images/vscode-set-breakpoint.png

5.93 KB
Loading

0 commit comments

Comments
 (0)