PY-38490 Fix debugging when special symbols are in file path

(cherry picked from commit c69c6d560f47552b736cd530106447de19e85e90)

GitOrigin-RevId: a29879d863e635020caf4322f8378b5789246a93
This commit is contained in:
Andrey Lisin
2019-11-05 18:09:51 +03:00
committed by intellij-monorepo-bot
parent 9abfa7cb67
commit 5997fbedf0
5 changed files with 32 additions and 3 deletions

View File

@@ -28,7 +28,8 @@ public class ProtocolParser {
if (!"call_signature".equals(reader.getNodeName())) {
throw new PyDebuggerException("Expected <call_signature>, found " + reader.getNodeName());
}
final String file = readString(reader, "file", "");
String file = reader.getAttribute("file");
if (file == null) file = "";
final String name = readString(reader, "name", "");
PySignature signature = new PySignature(file, name);
@@ -209,7 +210,7 @@ public class ProtocolParser {
final String id = readString(reader, "id", null);
final String name = readString(reader, "name", null);
final String file = readString(reader, "file", null);
final String file = reader.getAttribute("file");
final int line = readInt(reader, "line", 0);
return new PyStackFrameInfo(threadId, id, name, positionConverter.convertPythonToFrame(file, line));