Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regex support for sourceFileMap #3022

Open
r44083 opened this issue Jan 10, 2019 · 2 comments
Open

Add regex support for sourceFileMap #3022

r44083 opened this issue Jan 10, 2019 · 2 comments

Comments

@r44083
Copy link

@r44083 r44083 commented Jan 10, 2019

We need to translate paths from a compile-time unknown generated path names into a path vscode can find the files.
This could be solved with a regex, or similar.

For example translate "compiletime-srting-1" which is the same for build_dir and dl dir, but has different prefixes:

"sourceFileMap":
{
    "${workspaceFolder}/build_dir/target-testlib_arm_eglibc-2.18_eabi_<compiletime-srting-1>": "${workspaceFolder}/dl/testlib_<compiletime-srting-1>"
}

It has also a lot of similar usecases.

@WardenGnaw

This comment has been minimized.

Copy link
Member

@WardenGnaw WardenGnaw commented Jan 10, 2019

Here is the function where the sourceFileMap is resolved is in the open-sourced debug adapter.

@jasonwilliams

This comment has been minimized.

Copy link

@jasonwilliams jasonwilliams commented Jan 14, 2020

Even glob support would be nice, vscode-lldb added this to their debugging extension recently and its been helpful:
https://github.com/vadimcn/vscode-lldb/blob/master/CHANGELOG.md#070
https://jason-williams.co.uk/debugging-rust-in-vscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.