Check if local and remote roots are same (#345)

This commit is contained in:
Don Jayamanne 2018-04-13 15:11:03 -07:00 committed by GitHub
parent c069f1ccc8
commit a6ff97fbf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)