Skip to content

Commit b2ce408

Browse files
authored
Merge pull request #238 from hardy-ethan/workspace-folder-to-workspace-root
Change workspaceFolder to workspaceRoot in macOS VSCode to reflect CodeLLDB changes
2 parents 9c83e51 + 74b6d7f commit b2ce408

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/images/vscode_macos_034b.png

-32.9 KB
Loading

docs/setup_vscode_macos.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,12 @@ Depending on your program, its inputs, and how you want to debug it, you'll need
349349

350350
#### Edit `launch.json` program
351351

352-
If you already have a working `launch.json` and want to debug a different program, edit the `program` field `launch.json`. Your `program` name might be different. Make sure `cwd` is set to `"${workspaceFolder}"`.
352+
If you already have a working `launch.json` and want to debug a different program, edit the `program` field `launch.json`. Your `program` name might be different. Make sure `cwd` is set to `"${workspaceRoot}"`.
353353
```json
354354
{
355-
"program": "${workspaceFolder}/main.exe",
355+
"program": "${workspaceRoot}/main.exe",
356356
...
357-
"cwd": "${workspaceFolder}",
357+
"cwd": "${workspaceRoot}",
358358
}
359359
```
360360
{: data-highlight="2,4" }
@@ -399,7 +399,7 @@ To run a program with options or arguments in VS Code, edit `launch.json`. Each
399399
"configurations": [
400400
{
401401
...
402-
"program": "${workspaceFolder}/main.exe",
402+
"program": "${workspaceRoot}/main.exe",
403403
"args": ["HCMST_ver_3.04.tsv", "q24_met_online", "1", "0", "ppage"],
404404
...
405405
}
@@ -421,7 +421,7 @@ To configure input redirection, edit `launch.json` ([docs](https://github.com/va
421421
"configurations": [
422422
{
423423
...
424-
"program": "${workspaceFolder}/main.exe",
424+
"program": "${workspaceRoot}/main.exe",
425425
"stdio": ["main_test.in", null, null],
426426
...
427427
}

0 commit comments

Comments
 (0)