-
Notifications
You must be signed in to change notification settings - Fork 3k
Add sourceMap to launch.json so lldb can find WebKit code #19263
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
base: main
Are you sure you want to change the base?
Conversation
// Don't pause when the GC runs while the debugger is open. | ||
"sourceMap": { | ||
// macOS | ||
"/Users/runner/work/_temp/webkit-release/vendor/WebKit": "${workspaceFolder}/vendor/WebKit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these needed? Feels like we're not passing the right flags to the WebKit build to make sources relative?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I'll try some things in the WebKit repo. Looks like -fdebug-prefix-map
may be it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for now this is still worth merging, though?
What does this PR do?
Makes it easier to see WebKit source code in the debugger. For this to work you will need
vendor/WebKit
to exist and be checked out at the right commit. I addedbun sync-webkit-source
to make this easier.How did you verify your code works?
Ran a debugger on macOS and Linux with a breakpoint in
Zig::GlobalObject::visitChildrenImpl
. With this change you can now pull up source for the WebKit functions that call that method: