microsoft / microsoft/vscode-cpptools
C++ program Launch fails second time
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Bug type: Debugger
I run my program, it runs the program, I close the program. All fine.
However next time I try to run it, the launch does nothing, nothing happens. The 'Run and debug' panel shows the loading bar. The small panel showing 'Pause, Step Over, Restart, Stop' has only restart and stop enabled. Clicking these buttons will stop it, but trying to run again will not start it.
I have to completely restart VSCode to get ANY of my launch.jsons to work.
VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 7 3800X 8-Core Processor (16 x 4200) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.92GB (7.08GB free) |
| Process Argv | --crash-reporter-id 42ffcc9f-d1e9-4d04-96a9-4708692910f8 |
| Screen Reader | no |
| VM | 0% |
Extensions (4)
| Extension | Author (truncated) | Version |
|---|---|---|
| factoriomod-debug | jus | 1.1.11 |
| cpptools | ms- | 1.5.1 |
| fastbuild | Ros | 1.0.0 |
| vscode-autohotkey | sle | 0.2.2 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscorecescf:30322572
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30329788
pythonvssor306:30344512
bridge0708:30335490
vstre464:30346472
One of the launch.jsons, they are all similar, just calling different fastbuild tasks:
Launch json
{
"name": "Factorio Test Debug",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/Debugx64vs2017/factorio-test.exe",
"args": [
//"--test", "TrainGroup"
//"--suite", "Train"
//
//"--suite", "InputAction",
"--fork",
"-w"
//"-i"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "newExternalWindow",
"preLaunchTask": "FastBuildTestsDebug"
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the second-launch failure with the provided launch.json, using the VS Code Run and Debug panel and its FastBuildTestsDebug preLaunchTask. Compare the first and second launches and confirm that consecutive runs work without restarting VS Code; the issue provides no source file or test entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100