summaryrefslogtreecommitdiffstats
path: root/editor/script_editor_debugger.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2019-05-10 16:39:39 -0300
committerGeorge Marques <george@gmarqu.es>2019-05-14 11:39:44 -0300
commit9df1a2442b480f9ed8a8d4ec8992ea5046b98719 (patch)
tree84056c46da921931dfa03451db2c2fc71e4f69d3 /editor/script_editor_debugger.cpp
parentbdc6649b7991b1c11549a8efb0a708345bf12783 (diff)
downloadredot-engine-9df1a2442b480f9ed8a8d4ec8992ea5046b98719.tar.gz
Show function name in debugger stack trace
Also show script and line when the instance is gone when resuming from yield.
Diffstat (limited to 'editor/script_editor_debugger.cpp')
-rw-r--r--editor/script_editor_debugger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index 1da8bf874c..a283f39dff 100644
--- a/editor/script_editor_debugger.cpp
+++ b/editor/script_editor_debugger.cpp
@@ -622,8 +622,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
d["frame"] = i;
s->set_metadata(0, d);
- //String line = itos(i)+" - "+String(d["file"])+":"+itos(d["line"])+" - at func: "+d["function"];
- String line = itos(i) + " - " + String(d["file"]) + ":" + itos(d["line"]);
+ String line = itos(i) + " - " + String(d["file"]) + ":" + itos(d["line"]) + " - at function: " + d["function"];
s->set_text(0, line);
if (i == 0)