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;