mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Check if local and remote roots are same (#345)
This commit is contained in:
parent
c069f1ccc8
commit
a6ff97fbf7
1 changed files with 4 additions and 1 deletions
|
|
@ -1078,7 +1078,10 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
|
|||
try:
|
||||
return self.source_map.to_vscode(filename, autogen=False)
|
||||
except KeyError:
|
||||
pass
|
||||
# If attaching to a local process (then remote and local are same)
|
||||
for local_prefix, remote_prefix in pydevd_file_utils.PATHS_FROM_ECLIPSE_TO_PYTHON: # noqa
|
||||
if local_prefix == remote_prefix and filename.startswith(local_prefix): # noqa
|
||||
return 0
|
||||
|
||||
server_filename = pydevd_file_utils.norm_file_to_server(filename)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue