From 6d097a1aa9e2256d8909e8a3fb75af0decc452dc Mon Sep 17 00:00:00 2001 From: sideshowbarker Date: Tue, 9 Jul 2024 23:06:41 +0900 Subject: [PATCH] Documentation: Add how-to for building a Debug binary --- Documentation/BuildInstructionsLadybird.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/BuildInstructionsLadybird.md b/Documentation/BuildInstructionsLadybird.md index b775789394a..aa73db1266d 100644 --- a/Documentation/BuildInstructionsLadybird.md +++ b/Documentation/BuildInstructionsLadybird.md @@ -121,7 +121,14 @@ The simplest way to build and run ladybird is via the ladybird.sh script: ./Meta/ladybird.sh gdb ladybird ``` -The above commands will build Ladybird with one of the following browser chromes, depending on the platform: +The above commands will build a Release version of Ladybird. To instead build a Debug version, run the +`Meta/ladybird.sh` script with the value of the `BUILD_PRESET` environment variable set to `Debug`, like this: + +```bash +BUILD_PRESET=Debug ./Meta/ladybird.sh run ladybird +``` + +Either way, Ladybird will be built with one of the following browser chromes, depending on the platform: * [Android UI](https://developer.android.com/develop/ui) - The native chrome on Android. * [AppKit](https://developer.apple.com/documentation/appkit?language=objc) - The native chrome on macOS. * [Qt](https://doc.qt.io/qt-6/) - The chrome used on all other platforms.