From bd27ceb6697663123c4bcfd8f113051362634d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 29 Sep 2026 13:17:01 -0600 Subject: [PATCH] Headless: Reject --debugger together with --debugger-run Co-Authored-By: Claude Opus 5.5 (1M context) --- Core/CmdLine.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/CmdLine.cpp b/Core/CmdLine.cpp index b411262384..b5063190af 100644 --- a/Core/CmdLine.cpp +++ b/Core/CmdLine.cpp @@ -508,6 +508,11 @@ CommandLineParseResult CommandLineOptions::Parse(int argc, const char *argv[], C i++; } + if (debuggerPort.has_value() && debuggerRunPort.has_value()) { + PRINT_STDERR("Error: --debugger and --debugger-run can't be used together.\n"); + return CommandLineParseResult::Error; + } + // Final adjustments to adjust for old inconsistent code if (log.has_value()) { enableLogging = true;