From c45f44d85635a1d16a93c00cd8cb17f60dfa6336 Mon Sep 17 00:00:00 2001 From: Blazej Floch Date: Sun, 11 Feb 2018 06:08:37 -0500 Subject: Local debugger fixes and extensions - Adds q/quit option to console debugging - Adds options (variable_prefix) - Breaks into debugger with Ctrl-C in local debug mode (Unix/Windows) - Added option to list all breakpoints - Fixes add/remove breakpoint bug (invalid path parsing) - Minor cleanup --- core/script_debugger_local.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/script_debugger_local.h') diff --git a/core/script_debugger_local.h b/core/script_debugger_local.h index c87bc90bb4..7eea6ef215 100644 --- a/core/script_debugger_local.h +++ b/core/script_debugger_local.h @@ -31,6 +31,7 @@ #ifndef SCRIPT_DEBUGGER_LOCAL_H #define SCRIPT_DEBUGGER_LOCAL_H +#include "list.h" #include "script_language.h" class ScriptDebuggerLocal : public ScriptDebugger { @@ -38,9 +39,14 @@ class ScriptDebuggerLocal : public ScriptDebugger { bool profiling; float frame_time, idle_time, physics_time, physics_frame_time; uint64_t idle_accum; + String target_function; + Map options; Vector pinfo; + Pair to_breakpoint(const String &p_line); + void print_variables(const List &names, const List &values, const String &variable_prefix); + public: void debug(ScriptLanguage *p_script, bool p_can_continue); virtual void send_message(const String &p_message, const Array &p_args); -- cgit v1.2.3