godot/editor/debugger/editor_debugger_node.cpp

/**************************************************************************/
/*  editor_debugger_node.cpp                                              */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "editor_debugger_node.h"

#include "core/object/undo_redo.h"
#include "editor/debugger/editor_debugger_tree.h"
#include "editor/debugger/script_editor_debugger.h"
#include "editor/editor_log.h"
#include "editor/editor_node.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/gui/editor_bottom_panel.h"
#include "editor/gui/editor_run_bar.h"
#include "editor/inspector_dock.h"
#include "editor/plugins/editor_debugger_plugin.h"
#include "editor/plugins/script_editor_plugin.h"
#include "editor/scene_tree_dock.h"
#include "editor/themes/editor_theme_manager.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/tab_container.h"
#include "scene/resources/packed_scene.h"

template <typename Func>
void _for_all(TabContainer *p_node, const Func &p_func) {}

EditorDebuggerNode *EditorDebuggerNode::singleton =;

EditorDebuggerNode::EditorDebuggerNode() {}

ScriptEditorDebugger *EditorDebuggerNode::_add_debugger() {}

void EditorDebuggerNode::_stack_frame_selected(int p_debugger) {}

void EditorDebuggerNode::_error_selected(const String &p_file, int p_line, int p_debugger) {}

void EditorDebuggerNode::_text_editor_stack_goto(const ScriptEditorDebugger *p_debugger) {}

void EditorDebuggerNode::_text_editor_stack_clear(const ScriptEditorDebugger *p_debugger) {}

void EditorDebuggerNode::_bind_methods() {}

void EditorDebuggerNode::register_undo_redo(UndoRedo *p_undo_redo) {}

EditorDebuggerRemoteObject *EditorDebuggerNode::get_inspected_remote_object() {}

ScriptEditorDebugger *EditorDebuggerNode::get_debugger(int p_id) const {}

ScriptEditorDebugger *EditorDebuggerNode::get_previous_debugger() const {}

ScriptEditorDebugger *EditorDebuggerNode::get_current_debugger() const {}

ScriptEditorDebugger *EditorDebuggerNode::get_default_debugger() const {}

String EditorDebuggerNode::get_server_uri() const {}

void EditorDebuggerNode::set_keep_open(bool p_keep_open) {}

Error EditorDebuggerNode::start(const String &p_uri) {}

void EditorDebuggerNode::stop(bool p_force) {}

void EditorDebuggerNode::_notification(int p_what) {}

void EditorDebuggerNode::_update_errors() {}

void EditorDebuggerNode::_debugger_stopped(int p_id) {}

void EditorDebuggerNode::_debugger_wants_stop(int p_id) {}

void EditorDebuggerNode::_debugger_changed(int p_tab) {}

void EditorDebuggerNode::set_script_debug_button(MenuButton *p_button) {}

void EditorDebuggerNode::_break_state_changed() {}

void EditorDebuggerNode::_menu_option(int p_id) {}

void EditorDebuggerNode::_update_debug_options() {}

void EditorDebuggerNode::_paused() {}

void EditorDebuggerNode::_breaked(bool p_breaked, bool p_can_debug, const String &p_message, bool p_has_stackdump, int p_debugger) {}

bool EditorDebuggerNode::is_skip_breakpoints() const {}

void EditorDebuggerNode::set_breakpoint(const String &p_path, int p_line, bool p_enabled) {}

void EditorDebuggerNode::set_breakpoints(const String &p_path, const Array &p_lines) {}

void EditorDebuggerNode::reload_all_scripts() {}

void EditorDebuggerNode::reload_scripts(const Vector<String> &p_script_paths) {}

void EditorDebuggerNode::debug_next() {}

void EditorDebuggerNode::debug_step() {}

void EditorDebuggerNode::debug_break() {}

void EditorDebuggerNode::debug_continue() {}

String EditorDebuggerNode::get_var_value(const String &p_var) const {}

// LiveEdit/Inspector
void EditorDebuggerNode::request_remote_tree() {}

void EditorDebuggerNode::_remote_tree_updated(int p_debugger) {}

void EditorDebuggerNode::_remote_tree_button_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button) {}

void EditorDebuggerNode::_remote_object_updated(ObjectID p_id, int p_debugger) {}

void EditorDebuggerNode::_remote_object_property_updated(ObjectID p_id, const String &p_property, int p_debugger) {}

void EditorDebuggerNode::_remote_object_requested(ObjectID p_id, int p_debugger) {}

void EditorDebuggerNode::_save_node_requested(ObjectID p_id, const String &p_file, int p_debugger) {}

void EditorDebuggerNode::_breakpoint_set_in_tree(Ref<RefCounted> p_script, int p_line, bool p_enabled, int p_debugger) {}

void EditorDebuggerNode::_breakpoints_cleared_in_tree(int p_debugger) {}

// Remote inspector/edit.
void EditorDebuggerNode::_methods_changed(void *p_ud, Object *p_base, const StringName &p_name, const Variant **p_args, int p_argcount) {}

void EditorDebuggerNode::_properties_changed(void *p_ud, Object *p_base, const StringName &p_property, const Variant &p_value) {}

// LiveDebug
void EditorDebuggerNode::set_live_debugging(bool p_enabled) {}

void EditorDebuggerNode::update_live_edit_root() {}

void EditorDebuggerNode::live_debug_create_node(const NodePath &p_parent, const String &p_type, const String &p_name) {}

void EditorDebuggerNode::live_debug_instantiate_node(const NodePath &p_parent, const String &p_path, const String &p_name) {}

void EditorDebuggerNode::live_debug_remove_node(const NodePath &p_at) {}

void EditorDebuggerNode::live_debug_remove_and_keep_node(const NodePath &p_at, ObjectID p_keep_id) {}

void EditorDebuggerNode::live_debug_restore_node(ObjectID p_id, const NodePath &p_at, int p_at_pos) {}

void EditorDebuggerNode::live_debug_duplicate_node(const NodePath &p_at, const String &p_new_name) {}

void EditorDebuggerNode::live_debug_reparent_node(const NodePath &p_at, const NodePath &p_new_place, const String &p_new_name, int p_at_pos) {}

void EditorDebuggerNode::set_camera_override(CameraOverride p_override) {}

EditorDebuggerNode::CameraOverride EditorDebuggerNode::get_camera_override() {}

void EditorDebuggerNode::add_debugger_plugin(const Ref<EditorDebuggerPlugin> &p_plugin) {}

void EditorDebuggerNode::remove_debugger_plugin(const Ref<EditorDebuggerPlugin> &p_plugin) {}

bool EditorDebuggerNode::plugins_capture(ScriptEditorDebugger *p_debugger, const String &p_message, const Array &p_data) {}