Documentation: Update VSCodeConfiguration.md

- Update debug description for debugging on Linux with VSCode
- Update build paths in documentation
This commit is contained in:
Golho 2025-05-05 21:35:16 +02:00 committed by Tim Flynn
commit 0c2db2ab35
Notes: github-actions[bot] 2025-05-06 14:01:23 +00:00
2 changed files with 6 additions and 6 deletions

View file

@ -49,9 +49,9 @@ This error typically arises when CLion is not configured to use the correct buil
**Solution**: Ensure that CLion's build directory is set to the correct build directory for the selected profile. **Solution**: Ensure that CLion's build directory is set to the correct build directory for the selected profile.
Navigate to `Settings -> Build, Execution, Deployment -> CMake` and in your selected profile, set the `Build directory` according to the profile: Navigate to `Settings -> Build, Execution, Deployment -> CMake` and in your selected profile, set the `Build directory` according to the profile:
- Default -> "`Build/ladybird`" - Default -> "`Build/release`"
- Debug -> "`Build/ladybird-debug`" - Debug -> "`Build/debug`"
- Sanitizer -> "`Build/ladybird-sanitizers`" - Sanitizer -> "`Build/sanitizers`"
## Notes for WSL Users ## Notes for WSL Users

View file

@ -294,7 +294,7 @@ If you want to run the debugger, first place the content below in `.vscode/launc
"name": "Attach to WebContent", "name": "Attach to WebContent",
"type": "lldb", "type": "lldb",
"request": "attach", "request": "attach",
"program": "${workspaceFolder}/Build/ladybird-debug/bin/Ladybird.app/Contents/MacOS/WebContent", "program": "${workspaceFolder}/Build/debug/bin/Ladybird.app/Contents/MacOS/WebContent",
} }
], ],
} }
@ -319,7 +319,7 @@ For Linux, the `launch.json` will instead be the file below.
"name": "Attach and debug", "name": "Attach and debug",
"type": "cppdbg", "type": "cppdbg",
"request": "attach", "request": "attach",
"program": "${workspaceRoot}/Build/ladybird-debug/libexec/WebContent", "program": "${workspaceRoot}/Build/debug/libexec/WebContent",
"MIMode": "gdb", "MIMode": "gdb",
}, },
] ]
@ -332,7 +332,7 @@ Running Ladybird as follows:
BUILD_PRESET=Debug Meta/ladybird.sh run ladybird --debug-process WebContent BUILD_PRESET=Debug Meta/ladybird.sh run ladybird --debug-process WebContent
``` ```
Then follow the same steps found in the Mac section. Then follow the same steps found in the Mac section. Notice also that you need to have `gdb` (the GNU Debugger) installed.
### License snippet ### License snippet