Ladybird: Add command line flag to wait for debugger in WebContent

This commit is contained in:
Andrew Kaster 2023-12-20 09:52:17 -07:00 committed by Andreas Kling
parent b4a8d2a19f
commit 1e68e484cc
Notes: sideshowbarker 2024-07-17 18:46:30 +09:00
5 changed files with 21 additions and 0 deletions

View file

@ -55,6 +55,8 @@ ErrorOr<NonnullRefPtr<WebView::WebContentClient>> launch_web_content_process(
arguments.append("--use-lagom-networking"sv);
if (web_content_options.enable_gpu_painting == Ladybird::EnableGPUPainting::Yes)
arguments.append("--use-gpu-painting"sv);
if (web_content_options.wait_for_debugger == Ladybird::WaitForDebugger::Yes)
arguments.append("--wait-for-debugger"sv);
result = Core::System::exec(arguments[0], arguments.span(), Core::System::SearchInPath::Yes);
if (!result.is_error())