Ladybird: Enable rich debug messages on all processes

Android is excluded from this patch because the Android dbgln routes
messages to the NDK logger, which already includes process and time
information.
This commit is contained in:
Andrew Kaster 2023-12-11 11:19:41 -07:00 committed by Andrew Kaster
parent 4db5e2ba22
commit 57a04c536c
Notes: sideshowbarker 2024-07-17 01:53:23 +09:00
9 changed files with 18 additions and 0 deletions

View file

@ -27,6 +27,8 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
[Application sharedApplication];
Core::EventLoopManager::install(*new Ladybird::CFEventLoopManager);

View file

@ -14,6 +14,8 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
int fd_passing_socket { -1 };
StringView serenity_resource_root;

View file

@ -87,6 +87,8 @@ public:
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
LadybirdApplication app(arguments.argc, arguments.argv);
Core::EventLoopManager::install(*new Ladybird::EventLoopManagerQt);

View file

@ -36,6 +36,8 @@ ErrorOr<String> find_certificates(StringView serenity_resource_root)
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
int fd_passing_socket { -1 };
StringView serenity_resource_root;

View file

@ -15,6 +15,8 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
DeprecatedString pid_file;
Core::ArgsParser args_parser;

View file

@ -50,6 +50,8 @@ static ErrorOr<void> initialize_lagom_networking();
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
#if defined(HAVE_QT)
QCoreApplication app(arguments.argc, arguments.argv);

View file

@ -55,6 +55,8 @@ static ErrorOr<pid_t> launch_headless_browser(DeprecatedString const& socket_pat
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
auto listen_address = "0.0.0.0"sv;
int port = 8000;

View file

@ -32,6 +32,8 @@ ErrorOr<String> find_certificates(StringView serenity_resource_root)
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
int fd_passing_socket { -1 };
StringView serenity_resource_root;

View file

@ -30,6 +30,8 @@ static ErrorOr<void> initialize_lagom_networking();
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
AK::set_rich_debug_enabled(true);
int fd_passing_socket { -1 };
Core::ArgsParser args_parser;