Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed docs/images/vscode_macos_032.png
Binary file not shown.
Binary file added docs/images/vscode_macos_033.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/vscode_macos_034b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 12 additions & 8 deletions docs/setup_vscode_macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,18 @@ If you are prompted to select a debugger, select "CodeLLDB". (Do NOT select "C++
**Pitfall:** VS Code may not offer you debugging options for C++ if you haven't opened a `.cpp` file in your project editor. Open a `.cpp` file, then try again.
</div>

If you are prompted to select a configuration, select "CodeLLDB: Launch". You may need to scroll down to find this option.
You may be prompted with an autocomplete box. It may look like this, or it might have different options.

<img src="images/vscode_macos_032.png" width="768px" />
<img src="images/vscode_macos_033.png" width="768px" />

Edit the `program` field in `launch.json`. Save the updated file. Your `program` name might be different.
Choosing an option from this box is unnecessary, so you should make it disappear by pressing the left or right arrow key on your keyboard.

Edit the `program` and `cwd` fields in `launch.json`. Ensure that all occurences of `workspaceRoot` are replaced with `workspaceFolder`.

<img src="images/vscode_macos_034b.png" width="768px" />

Save the updated file. Your `program` name might be different.


### Launch Debugger

Expand All @@ -342,12 +346,12 @@ Depending on your program, its inputs, and how you want to debug it, you'll need

#### Edit `launch.json` program

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}"`.
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}"`.
```json
{
"program": "${workspaceRoot}/main.exe",
"program": "${workspaceFolder}/main.exe",
...
"cwd": "${workspaceRoot}",
"cwd": "${workspaceFolder}",
}
```
{: data-highlight="2,4" }
Expand Down Expand Up @@ -392,7 +396,7 @@ To run a program with options or arguments in VS Code, edit `launch.json`. Each
"configurations": [
{
...
"program": "${workspaceRoot}/main.exe",
"program": "${workspaceFolder}/main.exe",
"args": ["HCMST_ver_3.04.tsv", "q24_met_online", "1", "0", "ppage"],
...
}
Expand All @@ -414,7 +418,7 @@ To configure input redirection, edit `launch.json` ([docs](https://github.com/va
"configurations": [
{
...
"program": "${workspaceRoot}/main.exe",
"program": "${workspaceFolder}/main.exe",
"stdio": ["main_test.in", null, null],
...
}
Expand Down
Loading