Show object string cast instead of object id in debugger
(cherry picked from commit 0108e7c33a
)
This commit is contained in:
parent
d6dc8f4644
commit
3f30a22cb0
1 changed files with 4 additions and 2 deletions
|
@ -219,7 +219,8 @@ void ScriptDebuggerRemote::debug(ScriptLanguage *p_script,bool p_can_continue) {
|
||||||
|
|
||||||
if (F->get().get_type()==Variant::OBJECT) {
|
if (F->get().get_type()==Variant::OBJECT) {
|
||||||
packet_peer_stream->put_var("*"+E->get());
|
packet_peer_stream->put_var("*"+E->get());
|
||||||
packet_peer_stream->put_var(safe_get_instance_id(F->get()));
|
String pretty_print = F->get().operator String();
|
||||||
|
packet_peer_stream->put_var(pretty_print.ascii().get_data());
|
||||||
} else {
|
} else {
|
||||||
packet_peer_stream->put_var(E->get());
|
packet_peer_stream->put_var(E->get());
|
||||||
packet_peer_stream->put_var(F->get());
|
packet_peer_stream->put_var(F->get());
|
||||||
|
@ -242,7 +243,8 @@ void ScriptDebuggerRemote::debug(ScriptLanguage *p_script,bool p_can_continue) {
|
||||||
|
|
||||||
if (F->get().get_type()==Variant::OBJECT) {
|
if (F->get().get_type()==Variant::OBJECT) {
|
||||||
packet_peer_stream->put_var("*"+E->get());
|
packet_peer_stream->put_var("*"+E->get());
|
||||||
packet_peer_stream->put_var(safe_get_instance_id(F->get()));
|
String pretty_print = F->get().operator String();
|
||||||
|
packet_peer_stream->put_var(pretty_print.ascii().get_data());
|
||||||
} else {
|
} else {
|
||||||
packet_peer_stream->put_var(E->get());
|
packet_peer_stream->put_var(E->get());
|
||||||
packet_peer_stream->put_var(F->get());
|
packet_peer_stream->put_var(F->get());
|
||||||
|
|
Loading…
Reference in a new issue