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

Make lldb debug work to debug with cpp and rust #5705

Closed
gengjiawen opened this issue Sep 15, 2021 · 14 comments
Closed

Make lldb debug work to debug with cpp and rust #5705

gengjiawen opened this issue Sep 15, 2021 · 14 comments
Labels
meta: never-stale This issue can never become stale team: workspace Issue belongs to the Workspace team type: feature request New feature or request

Comments

@gengjiawen
Copy link
Contributor

gengjiawen commented Sep 15, 2021

Repo: https://github.com/gengjiawen/node-debug
Gitpod: https://gitpod.io/#https://github.com/gengjiawen/node-debug

debug config:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "initCommands":["settings set target.disable-aslr false"],
            "request": "launch",
            "name": "Debug",
            "program": "node",
            "args": ["hello.js"],
            "cwd": "${workspaceFolder}"
        }
    ]
}

Current status: not working

'A' packet returned an error: 8

Working container config: "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], https://github.com/gengjiawen/node-debug/blob/f1aaeea4aed61a037f28397aa11d907525ce35fc/.devcontainer/devcontainer.json#L13

I think fixing vscode-lldb on gitpods will bring debug native language (c, cpp, rust) to the next level.

Related:

@stale
Copy link

stale bot commented Dec 14, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Dec 14, 2021
@gengjiawen
Copy link
Contributor Author

not stale

@stale stale bot removed the meta: stale This issue/PR is stale and will be closed soon label Dec 15, 2021
@sagor999 sagor999 added the team: workspace Issue belongs to the Workspace team label Feb 25, 2022
@sagor999
Copy link
Contributor

sagor999 commented Feb 25, 2022

@Furisto is this supported with our runtime config? and if not, is this a complex task or an easy fix?

@Furisto
Copy link
Member

Furisto commented Feb 25, 2022

@sagor999 Hard to say honestly. It looks we already tried to enable it, but it is obviously not working. We have to look into which layer in our stack causes the problem. Then we need to check if this can be done without introducing security risk.

@sagor999
Copy link
Contributor

@kylos101 added it to our inbox

@atduarte atduarte changed the title [Feature request] make lldb debug work to debug with cpp and rust Make lldb debug work to debug with cpp and rust Apr 11, 2022
@atduarte atduarte added the type: feature request New feature or request label Apr 11, 2022
@stale
Copy link

stale bot commented Jul 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Jul 10, 2022
@david-bakin
Copy link

@axonasif - any chance to mark this "never stale"?

@stale stale bot removed the meta: stale This issue/PR is stale and will be closed soon label Jul 10, 2022
@atduarte atduarte added the meta: never-stale This issue can never become stale label Jul 25, 2022
@aledbf
Copy link
Member

aledbf commented Aug 10, 2022

@gengjiawen please try again. Check the workspace lands in us60 or eu60.

@gengjiawen
Copy link
Contributor Author

@gengjiawen please try again. Check the workspace lands in us60 or eu60.

the breakpoint not working on my side.

@gengjiawen
Copy link
Contributor Author

Second try works, not sure why ?
image

@aledbf
Copy link
Member

aledbf commented Aug 22, 2022

the breakpoint not working on my side.

I cannot reproduce that behavior. That said, the codelldb process uses 100% of the CPU, and after ~15s the breakpoint is reached.

@gengjiawen
Copy link
Contributor Author

I can't reproduce the bug. Thx for the great work.

@gengjiawen gengjiawen moved this to Awaiting Deployment in 🌌 Workspace Team Aug 23, 2022
@jenting
Copy link
Contributor

jenting commented Aug 24, 2022

Move the status to Done because we can't reproduce this bug.

@jenting jenting moved this from Awaiting Deployment to Done in 🌌 Workspace Team Aug 24, 2022
@kasperk81
Copy link

kasperk81 commented Nov 24, 2022

'A' packet returned an error: 8

still getting the same error in terminal. what is needed to make lldb work in gitpod terminal?

Gitpod: https://gitpod.io/#https://github.com/gengjiawen/node-debug

ran sudo apt install lldb then lldb ls (or lldb node or any binary you wish to run under debugger) and then run in lldb's repl:

Current executable set to 'ls' (x86_64).
(lldb) run
error: process launch failed: 'A' packet returned an error: 8

otoh, gdb just works in the same terminal: gdb ls and run in its repl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: never-stale This issue can never become stale team: workspace Issue belongs to the Workspace team type: feature request New feature or request
Projects
No open projects
Status: Done
Development

No branches or pull requests

8 participants