From da2bcda7bec65f8c9bedb0ca3b23fc802b277c9d Mon Sep 17 00:00:00 2001 From: geequlim Date: Mon, 29 May 2017 14:09:16 +0800 Subject: Enhanced debugger. ake 2.1 more productive! Allow access more informations from remote debugger. Refector more debugger related code to allow full access to variables. Array Property Editor now can edit with more objects including remote objects. Implements `GDInstance::debug_get_globals` to query all gloabl constants avaliable in GDScriptLanguage. Show globals in debug stack variable panel. Disabe capitalize property name for remote object. Add DictionaryPropertyEdit to edit with Dictionaries. The serialization/unserialization workflow use binary data instead of dictionary to avoid send too large data. Do not stop debugger if curent break point stack has error fix #9034. Don't send all content of strings but first 80 characters from remote debugger. Add constants into the break point stack tree and remote object instance edit inspector. Remote GDScript resource object instance list constants in the property inspector. Add `self` to the local in the break point stack as a remote object. Move some functions for GDScript related to thier base classes so debugger don't rely on the gdscript module any more. The slef in the debugger tree now expanded as the instance of script instead of the script resource. --- core/script_debugger_remote.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/script_debugger_remote.h') diff --git a/core/script_debugger_remote.h b/core/script_debugger_remote.h index 924e3774a..508f9b145 100644 --- a/core/script_debugger_remote.h +++ b/core/script_debugger_remote.h @@ -108,7 +108,6 @@ class ScriptDebuggerRemote : public ScriptDebugger { void *request_scene_tree_ud; void _set_object_property(ObjectID p_id, const String &p_property, const Variant &p_value); - void _send_object_id(ObjectID p_id); void _send_video_memory(); LiveEditFuncs *live_edit_funcs; @@ -118,6 +117,9 @@ class ScriptDebuggerRemote : public ScriptDebugger { void _send_profiling_data(bool p_for_frame); + int _serialize_variant(const Variant &var, const PropertyInfo &p_info, DVector &buff); + DVector _serialize(const Variant &var, const PropertyInfo &p_info); + struct FrameData { StringName name; -- cgit v1.2.3-70-g09d2