summaryrefslogtreecommitdiffstats
path: root/core/script_debugger_local.h
diff options
context:
space:
mode:
authorBlazej Floch <register@bfloch.com>2018-02-11 06:08:37 -0500
committerBlazej Floch <register@bfloch.com>2018-05-07 23:17:06 -0400
commitc45f44d85635a1d16a93c00cd8cb17f60dfa6336 (patch)
tree72075a2ec56dda5d512885e19b28295dbecf7b48 /core/script_debugger_local.h
parent9b1fdad035f226bb7eba3e592083fc40a9e1ab27 (diff)
downloadredot-engine-c45f44d85635a1d16a93c00cd8cb17f60dfa6336.tar.gz
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
Diffstat (limited to 'core/script_debugger_local.h')
-rw-r--r--core/script_debugger_local.h6
1 files changed, 6 insertions, 0 deletions
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<String, String> options;
Vector<ScriptLanguage::ProfilingInfo> pinfo;
+ Pair<String, int> to_breakpoint(const String &p_line);
+ void print_variables(const List<String> &names, const List<Variant> &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);