Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attach debug by PID startup failed #1110

Open
ndm-liuliu opened this issue Jun 3, 2024 · 1 comment
Open

attach debug by PID startup failed #1110

ndm-liuliu opened this issue Jun 3, 2024 · 1 comment

Comments

@ndm-liuliu
Copy link

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}"
},
]
}

@vadimcn
Copy link
Owner

vadimcn commented Oct 8, 2024

Please retry with v11.1. If nothing else, it should display an error message this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants