| 690 | } |
| 691 | |
| 692 | Error 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 | |
| 721 | Error RemoteDebugger::_profiler_capture(const String &p_cmd, const Array &p_data, bool &r_captured) { |
| 722 | r_captured = false; |
no test coverage detected