microsoft / microsoft/vscode-cpptools
C++ program Launch fails second time
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
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"
}
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Fehler beim zweiten Start mit der bereitgestellten launch.json zu reproduzieren, indem du den VS Code Run and Debug-Bereich und dessen FastBuildTestsDebug preLaunchTask verwendest. Vergleiche den ersten und den zweiten Start und bestätige, dass aufeinanderfolgende Ausführungen ohne Neustart von VS Code funktionieren; das Issue stellt weder eine Quelldatei noch einen Testeinstiegspunkt bereit.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100