microsoft / microsoft/vscode-cpptools

Unable to step or hit breakpoints

Aperta
#13,850 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug debugger help wanted
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Environment
  • OS and version: Windows 11 home
  • VS Code: Version 1.103
  • C/C++ extension: GCC 11.2.0
  • OS and version of remote machine (if applicable):
  • GDB / LLDB version:
Bug Summary and Steps to Reproduce

Bug Summary:

Once I start debugging my code I am able to enter inputs in the terminal window, the breakpoints are hit and I am able to step into some functions but then I am prompted to enter more inputs in the terminal once i hit enter, and try to step over or into functions I get the error message
"Unable to step next. Operation failed with error code 0x80004004."

In the debug console, it says:
ERROR: Unexpected GDB output from command "-exec-next". Cannot find bounds of current function

Debugger Configurations
Here is my Launch.json file

{
    // 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}/build/Card-Games.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
            "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
                }
            ]
        },

    ]
}
Debugger Logs
ERROR: Unexpected GDB output from command "-exec-next". Cannot find bounds of current function
Other Extensions

No response

Additional Information

No response

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con la configurazione launch.json fornita e riproduci il malfunzionamento dopo l’input nel terminale, concentrandoti sul log di GDB per il comando "-exec-next". Verifica le versioni coinvolte di Windows, VS Code, dell’estensione C/C++, GCC e GDB; il lavoro è concluso quando è stata stabilita una riproduzione affidabile oppure il malfunzionamento è stato ricondotto a una configurazione specifica o a un’interazione con il debugger.

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
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.