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

Method _clear_execution

editor/script/script_editor_plugin.cpp:562–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562void ScriptEditor::_clear_execution(Ref<RefCounted> p_script) {
563 Ref<Script> scr = Object::cast_to<Script>(*p_script);
564 if (scr.is_valid() && (scr->has_source_code() || scr->get_path().is_resource_file())) {
565 for (int i = 0; i < tab_container->get_tab_count(); i++) {
566 ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
567 if (!se) {
568 continue;
569 }
570
571 if ((scr.is_valid() && se->get_edited_resource() == p_script) || se->get_edited_resource()->get_path() == scr->get_path()) {
572 se->clear_executing_line();
573 }
574 }
575 }
576}
577
578void ScriptEditor::_set_breakpoint(Ref<RefCounted> p_script, int p_line, bool p_enabled) {
579 Ref<Script> scr = Object::cast_to<Script>(*p_script);

Callers

nothing calls this directly

Calls 8

is_resource_fileMethod · 0.80
get_tab_controlMethod · 0.80
is_validMethod · 0.45
has_source_codeMethod · 0.45
get_pathMethod · 0.45
get_tab_countMethod · 0.45
get_edited_resourceMethod · 0.45
clear_executing_lineMethod · 0.45

Tested by

no test coverage detected