MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _core_capture

Method _core_capture

core/debugger/remote_debugger.cpp:692–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692Error RemoteDebugger::_core_capture(const String &p_cmd, const Array &p_data, bool &r_captured) {
693 r_captured = true;
694 if (p_cmd == "reload_scripts") {
695 script_paths_to_reload = p_data;
696 } else if (p_cmd == "reload_all_scripts") {
697 reload_all_scripts = true;
698 } else if (p_cmd == "breakpoint") {
699 ERR_FAIL_COND_V(p_data.size() < 3, ERR_INVALID_DATA);
700 bool set = p_data[2];
701 if (set) {
702 script_debugger->insert_breakpoint(p_data[1], p_data[0]);
703 } else {
704 script_debugger->remove_breakpoint(p_data[1], p_data[0]);
705 }
706
707 } else if (p_cmd == "set_skip_breakpoints") {
708 ERR_FAIL_COND_V(p_data.is_empty(), ERR_INVALID_DATA);
709 script_debugger->set_skip_breakpoints(p_data[0]);
710 } else if (p_cmd == "set_ignore_error_breaks") {
711 ERR_FAIL_COND_V(p_data.is_empty(), ERR_INVALID_DATA);
712 script_debugger->set_ignore_error_breaks(p_data[0]);
713 } else if (p_cmd == "break") {
714 script_debugger->debug(script_debugger->get_break_language());
715 } else {
716 r_captured = false;
717 }
718 return OK;
719}
720
721Error RemoteDebugger::_profiler_capture(const String &p_cmd, const Array &p_data, bool &r_captured) {
722 r_captured = false;

Callers 1

RemoteDebuggerMethod · 0.80

Calls 8

set_skip_breakpointsMethod · 0.80
sizeMethod · 0.65
insert_breakpointMethod · 0.45
remove_breakpointMethod · 0.45
is_emptyMethod · 0.45
debugMethod · 0.45
get_break_languageMethod · 0.45

Tested by

no test coverage detected