| 1217 | } |
| 1218 | |
| 1219 | void ScriptTextEditor::_breakpoint_item_pressed(int p_idx) { |
| 1220 | if (p_idx < 4) { // Any item before the separator. |
| 1221 | _edit_option(breakpoints_menu->get_item_id(p_idx)); |
| 1222 | } else { |
| 1223 | code_editor->goto_line_centered(breakpoints_menu->get_item_metadata(p_idx)); |
| 1224 | } |
| 1225 | } |
| 1226 | |
| 1227 | void ScriptTextEditor::_breakpoint_toggled(int p_row) { |
| 1228 | EditorDebuggerNode::get_singleton()->set_breakpoint(script->get_path(), p_row + 1, code_editor->get_text_editor()->is_line_breakpointed(p_row)); |
nothing calls this directly
no test coverage detected