1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

Ladybird/CMake: Launch gdb with follow fork mode to debug WebContent

This commit is contained in:
networkException 2022-10-19 21:13:53 +02:00 committed by Andrew Kaster
parent d1b2c2977e
commit fb71dc5141

View file

@ -105,7 +105,7 @@ add_custom_target(run
)
add_custom_target(debug
COMMAND "${CMAKE_COMMAND}" -E env "SERENITY_SOURCE_DIR=${SERENITY_SOURCE_DIR}" gdb "$<TARGET_FILE:ladybird>"
COMMAND "${CMAKE_COMMAND}" -E env "SERENITY_SOURCE_DIR=${SERENITY_SOURCE_DIR}" gdb -ex "set follow-fork-mode child" "$<TARGET_FILE:ladybird>"
USES_TERMINAL
)