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
Notes: sideshowbarker 2024-07-17 07:14:09 +09:00

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
)