microsoft / microsoft/vscode-cpptools

Debugger not working

Aperta
#6,369 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

debugger more info needed
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Type: Debugger

Hi team
I have set up the vscode for c++ in the following article as described. But When I am trying to follow the debugger setup steps, I am getting the following error and my debugger is not able to start.

Error
Unable to start debugging. Unable to establish a connection to LLDB. The following message was written to stderr:

dyld: lazy symbol binding failed: Symbol not found: __ZN4lldb20SBCommandInterpreter15SetPromptOnQuitEb
Referenced from: /Users/shubham.goyal/.vscode/extensions/ms-vscode.cpptools-1.0.1/debugAdapters/lldb-mi/bin/lldb-mi
Expected in: /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB
dyld: Symbol not found: __ZN4lldb20SBCommandInterpreter15SetPromptOnQuitEb
Referenced from: /Users/shubham.goyal/.vscode/extensions/ms-vscode.cpptools-1.0.1/debugAdapters/lldb-mi/bin/lldb-mi
Expected in: /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB
0 lldb-mi 0x000000010d99f615 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 lldb-mi 0x000000010d99e4a6 llvm::sys::RunSignalHandlers() + 198
2 lldb-mi 0x000000010d99febc SignalHandler(int) + 268
3 libsystem_platform.dylib 0x00007fff786ddb5d _sigtramp + 29
4 libsystem_platform.dylib 0x0000000115e8e6d4 _sigtramp + 18446603343158250388
5 libsystem_platform.dylib 0x0000000115e6cbd2 _sigtramp + 18446603343158112402
6 libsystem_platform.dylib 0x0000000115e2ca9d _sigtramp + 18446603343157849949
7 libsystem_platform.dylib 0x0000000115e2cbc7 _sigtramp + 18446603343157850247
8 libdyld.dylib 0x00007fff784de32e dyld_stub_binder + 282

I feel it has something to do with xcode version.
Describe the bug
OS version: Mac os 10.14.6 mojave
Vscode version: 1.50.1
xcode version: 2354

tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "clang++ build active file",
"command": "/usr/bin/clang++",
"args": [
"-std=c++14",
"-stdlib=libc++",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

launch.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": "clang++ - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"preLaunchTask": "clang++ build active file"
}
],
"logging": { "engineLogging": true, "trace": true, "traceResponse": true }
}

Please point me out in right direction to solve this.
Thanks

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 le configurazioni tasks.json e launch.json segnalate e con il percorso di lldb-mi riportato nell’errore. Riproduci l’avvio utilizzando le versioni specificate di macOS, VS Code, Xcode e dell’estensione C/C++, quindi confronta i simboli lldb-mi inclusi con il framework LLDB di Xcode. L’attività è completata quando il programma C++ configurato avvia il debug senza l’errore relativo al simbolo mancante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cpp
Ambito
devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.