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!
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too