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

[Meta, Build] Provide working VSCode launch.json #1511

Open
paaspaas00 opened this issue Sep 24, 2024 · 0 comments
Open

[Meta, Build] Provide working VSCode launch.json #1511

paaspaas00 opened this issue Sep 24, 2024 · 0 comments

Comments

@paaspaas00
Copy link
Contributor

paaspaas00 commented Sep 24, 2024

Hi all, I'm trying to debug ladybird on linux. Following the VSCode instructions, I've managed to get to a working environment where I can build in Release and in Debug mode, all working fine. However, I've got issues starting ladybird with the debugger.
Starting debug from the CMake target (bottom CMake bar, bug icon) does not work (it should create a launch.json on the fly as I understand it correctly), it does not start the debugger and this is shown in the terminal:

error: unknown option: --interpreter=mi
error: unknown option: --tty=/dev/pts/13
Use 'lldb-17 --help' for a complete list of options.
[1] + Done(1)                    "/usr/bin/lldb-17" --interpreter=mi --tty=${DbgTerm} 0<"/tmp/Microsoft-MIEngine-In-joivakjq.kx1" 1>"/tmp/Microsoft-MIEngine-Out-jtqokwlj.dui"

So I tried crafting a launch.json manually.
Here's my attempt:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "C++ Launch",
      "type": "cppdbg",
      "request": "launch",
      "program": "/bin/bash",
      "args": [
        "${workspaceFolder}/Meta/ladybird.sh",
        "run",
        "ladybird"
      ],
      "environment": [
        {
          "name": "config",
          "value": "Debug"
        }
      ],
      "cwd": "${workspaceFolder}"
    }
  ]
}

When started with F5, this launch.json is correctly picked up, the debugger is started and I can see from the Debugger pane that it sets breakpoints etc, but it doesn't stop at breakpoints, as if it's not attached to the ladybird executable or started with it.

Could you please provide a working launch.json for linux to compare with (or step-by-step instructions) to solve the issue?
Thank you!

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

1 participant