Skip to content

Commit dedbf72

Browse files
authored
Revert "Manual launch.json file creation workaround for CodeLLDB bug"
1 parent 9c83e51 commit dedbf72

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

docs/images/vscode_macos_031c.png

-90.4 KB
Binary file not shown.

docs/setup_vscode_macos.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -299,26 +299,19 @@ The examples below assume a source file `main.cpp` compiled to `main.exe` ([Samp
299299

300300
Running and debugging code through VS Code requires a `launch.json` configuration file.
301301

302-
<div class="primer-spec-callout warning" markdown="1">
303-
**Pitfall:** Due to a bug in the CodeLLDB extension, you need to manually start the creation of a launch.json file in your workspace folder. You can use the following commands to do so. **Make sure your current directory is your workspace folder.**
304-
305-
```console
306-
$ pwd
307-
/Users/awdeorio/eecs280/p1-stats
308-
$ mkdir -p .vscode
309-
$ touch .vscode/launch.json
310-
```
311-
</div>
312-
313302
Navigate to the debugging pane and click "create a launch.json file". Or, if you have previous debugging configurations, click the gear icon to edit `launch.json`.
314303

315304
| <img src="images/vscode_macos_030.png" width="360px" /> | <span style="font-size: 24pt;">OR</span> | <img src="images/vscode_macos_031.png" width="360px" /> |
316305

317-
If you are not prompted to select a configuration, or your configuration list does not contain "CodeLLDB: Launch," click "Add configuration..." near the bottom right of the editor window.
306+
If you are prompted to select a debugger, select "CodeLLDB". (Do NOT select "C++ (GDB/LLDB)".)
307+
308+
<img src="images/vscode_macos_031b.png" width="768px" />
318309

319-
<img src="images/vscode_macos_031c.png" width="768px" />
310+
<div class="primer-spec-callout warning" markdown="1">
311+
**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.
312+
</div>
320313

321-
Select "CodeLLDB: Launch". You may need to scroll down to find this option.
314+
If you are prompted to select a configuration, select "CodeLLDB: Launch". You may need to scroll down to find this option.
322315

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

0 commit comments

Comments
 (0)