vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

attach debug by PID startup failed #1110

Open ndm-liuliu opened 1 month ago

ndm-liuliu commented 1 month ago

OS: Ubuntu 22.04.4 LTS VSCode version: 1.87.2 CodeLLDB version: v1.10.0 Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Debuggee: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=64657ea1dab5a94d77880cab94c5084ab6cd6f38, for GNU/Linux 3.2.0, stripped

When I attempt to debug via the 'attach' method, the process hangs as soon as I select the PID. The usual debug toolbar in VS Code does not appear. Additionally, I am unable to click the debug button again; it becomes unresponsive and the only solution is to reload VS Code.

Verbose log
Initial debug configuration: {
  type: 'lldb',
  request: 'attach',
  name: 'Attach',
  pid: '${command:pickMyProcess}',
  __configurationTarget: 6
}
Resolved debug configuration: {
  type: 'lldb',
  request: 'attach',
  name: 'Attach',
  pid: '${command:pickMyProcess}',
  __configurationTarget: 6,
  relativePathBase: '/home/liu/ndm_envnav',
  _adapterSettings: {
    displayFormat: 'auto',
    showDisassembly: 'auto',
    dereferencePointers: true,
    suppressMissingSourceFiles: true,
    evaluationTimeout: 5,
    consoleMode: 'commands',
    sourceLanguages: null,
    terminalPromptClear: null,
    evaluateForHovers: true,
    commandCompletions: true,
    reproducer: false
  }
}
liblldb: null
environment: {}
settings: { evaluateForHovers: true, commandCompletions: true }

config: { "version": "0.2.0", "configurations": [ { "type": "lldb", "request": "attach", "name": "Attach", "pid": "${command:pickMyProcess}" }, ] }