microsoft / microsoft/vscode-cpptools
Debug ends only in disassembly view
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
Environment
- OS and version: Gentoo Linux x64 6.1.57-gentoo-dist also tested on Arch linux
- VS Code:
Version: 1.83.1
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:45:31.402Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0 - C/C++ extension:v1.17.5
- GDB / LLDB version: GNU gdb (Gentoo 13.2 vanilla) 13.2
Bug Summary and Steps to Reproduce
Bug Summary:
I'm getting error: Unable to step next. Operation failed with error code 0x80004004 and debug can't end if I debugging not in dissasembly view.
Steps to reproduce:
- take default configuration for debug hello world on c
- start debug
- press f10 untill get error or end of debug.
Debugger Configurations
lauch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${fileBasenameNoExtension}",
"MIMode": "gdb",
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"logging": { "engineLogging": true, "trace": true, "traceResponse": true },
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: gcc build active file",
}
],
}
tasks.json
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
Debugger Logs
too long. Check files
Other Extensions
No other extensions
Additional Information
https://github.com/microsoft/vscode-cpptools/assets/95098167/4b6c8c86-4c94-4308-954d-f055033dff13
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, die standardmäßige C-Startkonfiguration aus launch.json und tasks.json zu reproduzieren, und führe mit F10 schrittweise aus, bis der Fehler auftritt. Vergleiche default_debug.txt mit with_asm_view.txt und untersuche das gemeldete Verhalten, wenn das Debugging außerhalb der Disassemblierungsansicht beendet wird. Als erledigt gilt die Aufgabe, wenn das schrittweise Ausführen und das Beenden einer Debugsitzung zuverlässig ohne den Fehler 0x80004004 funktionieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, cpp, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100