microsoft / microsoft/vscode-cpptools
Debug ends only in disassembly view
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
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
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 la configurazione di avvio C predefinita da launch.json e tasks.json, avanzando passo passo con F10 fino a quando si verifica l’errore. Confronta default_debug.txt con with_asm_view.txt e analizza il comportamento segnalato quando si termina il debug al di fuori della vista disassembly. Il lavoro è completato quando l’esecuzione passo passo e la chiusura di una sessione di debug funzionano in modo affidabile senza l’errore 0x80004004.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, cpp, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100