microsoft / microsoft/vscode-cpptools
C++ program Launch fails second time
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
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"
}
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il fallimento del secondo avvio con il launch.json fornito, usando il pannello Run and Debug di VS Code e il relativo FastBuildTestsDebug preLaunchTask. Confronta il primo e il secondo avvio e conferma che le esecuzioni consecutive funzionano senza riavviare VS Code; l’issue non fornisce alcun file sorgente né un punto di ingresso per i test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100