mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
PY-38490 Fix debugging when special symbols are in file path
(cherry picked from commit c69c6d560f47552b736cd530106447de19e85e90) GitOrigin-RevId: a29879d863e635020caf4322f8378b5789246a93
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9abfa7cb67
commit
5997fbedf0
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user