Fix exception with dictionary keys with tab symbols (PY-16188)

Replace tabs in keys with special symbols for sending to debugger
This commit is contained in:
Elizaveta Shashkova
2015-06-15 20:11:18 +03:00
parent c5a37adfa7
commit 6552978f44
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -200,6 +200,9 @@ def getVariable(thread_id, frame_id, scope, attrs):
else:
attrList = []
for attr in attrList:
attr.replace("@_@TAB_CHAR@_@", '\t')
if scope == 'EXPRESSION':
for count in xrange(len(attrList)):
if count == 0:
@@ -26,7 +26,7 @@ public class GetVariableCommand extends GetFrameCommand {
sb.insert(0, BY_ID).insert(0, '\t').insert(0, p.getId());
break;
} else {
sb.insert(0, p.getTempName());
sb.insert(0, p.getTempName().replaceAll("\t", TAB_CHAR));
}
p = p.getParent();
}