mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Allow to ignore debugger error breaks
This commit is contained in:
parent
74907876d3
commit
7d82704f12
11 changed files with 84 additions and 14 deletions
|
|
@ -593,6 +593,7 @@ void Main::print_help(const char *p_binary) {
|
|||
print_help_title("Debug options");
|
||||
print_help_option("-d, --debug", "Debug (local stdout debugger).\n");
|
||||
print_help_option("-b, --breakpoints", "Breakpoint list as source::line comma-separated pairs, no spaces (use %%20 instead).\n");
|
||||
print_help_option("--ignore-error-breaks", "If debugger is connected, prevents sending error breakpoints.\n");
|
||||
print_help_option("--profiling", "Enable profiling in the script debugger.\n");
|
||||
print_help_option("--gpu-profile", "Show a GPU profile of the tasks that took the most time during frame rendering.\n");
|
||||
print_help_option("--gpu-validation", "Enable graphics API validation layers for debugging.\n");
|
||||
|
|
@ -984,6 +985,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
bool test_rd_support = false;
|
||||
#endif
|
||||
bool skip_breakpoints = false;
|
||||
bool ignore_error_breaks = false;
|
||||
String main_pack;
|
||||
bool quiet_stdout = false;
|
||||
int separate_thread_render = -1; // Tri-state: -1 = not set, 0 = false, 1 = true.
|
||||
|
|
@ -1734,6 +1736,8 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
OS::get_singleton()->disable_crash_handler();
|
||||
} else if (arg == "--skip-breakpoints") {
|
||||
skip_breakpoints = true;
|
||||
} else if (I->get() == "--ignore-error-breaks") {
|
||||
ignore_error_breaks = true;
|
||||
#ifndef XR_DISABLED
|
||||
} else if (arg == "--xr-mode") {
|
||||
if (N) {
|
||||
|
|
@ -1984,7 +1988,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
GLOBAL_DEF(PropertyInfo(Variant::INT, "network/limits/debugger/max_errors_per_second", PROPERTY_HINT_RANGE, "1,200,1,or_greater"), 400);
|
||||
GLOBAL_DEF(PropertyInfo(Variant::INT, "network/limits/debugger/max_warnings_per_second", PROPERTY_HINT_RANGE, "1,200,1,or_greater"), 400);
|
||||
|
||||
EngineDebugger::initialize(debug_uri, skip_breakpoints, breakpoints, []() {
|
||||
EngineDebugger::initialize(debug_uri, skip_breakpoints, ignore_error_breaks, breakpoints, []() {
|
||||
if (editor_pid) {
|
||||
DisplayServer::get_singleton()->enable_for_stealing_focus(editor_pid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue