Skip to content

Need to reload breakpoints when using a relative path #652

Closed as not planned
@ghost

Description

When creating the launch.json configuration the path like
{ "version": "0.2.0", "inputs": [ { "id": "remote_ip", "type": "promptString", "description": "Enter the remote IP address of the debug server", "default": "localhost" } ], "configurations": [ { "name": "Python Debugger: Remote Attach", "type": "debugpy", "request": "attach", "connect": { "host": "${input:remote_ip}", "port": 5678 }, "pathMappings": [ { "localRoot": "${workspaceFolder}/sound/play_predefined", // "localRoot": "${fileDirname}/..", "remoteRoot": "." } ], }, ] }
with this configuration everything work as a charm but when i use "localRoot": "${fileDirname}/.." the breakpoint are not found in the file but the path is the same, adding a new breakpoint will make that the breakpoints from the localmachine
when i pause the program the breakpoints gets reloaded and magically now founds the path

Image
i just add a new one on the line 20
Image
and the one of the line 13 is found

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions