diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-08-04 09:47:32 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-08-04 09:47:32 -0300 |
commit | d1da2c29955c851d74037a5196168a0a90507f9a (patch) | |
tree | c51bb0c05da46a368fe712a5a494af591b9f1484 /core/script_debugger_remote.h | |
parent | cbee679bd78c1b3317db1ea4e349f278576304a1 (diff) |
error debugger
shows the list of errors that happened during running the game, traces
can be analyzed
Diffstat (limited to 'core/script_debugger_remote.h')
-rw-r--r-- | core/script_debugger_remote.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/core/script_debugger_remote.h b/core/script_debugger_remote.h index 748b77eccd..c2642782a9 100644 --- a/core/script_debugger_remote.h +++ b/core/script_debugger_remote.h @@ -49,8 +49,31 @@ class ScriptDebuggerRemote : public ScriptDebugger { Object *performance; bool requested_quit; Mutex *mutex; + + struct OutputError { + + int hr; + int min; + int sec; + int msec; + String source_file; + String source_func; + int source_line; + String error; + String error_descr; + bool warning; + Array callstack; + + }; + List<String> output_strings; List<Message> messages; + List<OutputError> errors; + + int max_cps; + int char_count; + uint64_t last_msec; + uint64_t msec_count; bool locking; //hack to avoid a deadloop static void _print_handler(void *p_this,const String& p_string); @@ -69,6 +92,10 @@ class ScriptDebuggerRemote : public ScriptDebugger { LiveEditFuncs *live_edit_funcs; + ErrorHandlerList eh; + static void _err_handler(void*,const char*,const char*,int p_line,const char *, const char *,ErrorHandlerType p_type); + + public: Error connect_to_host(const String& p_host,uint16_t p_port); |