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
yhsb2k opened this issue Jan 10, 2019 · 2 comments
Open

Add regex support for sourceFileMap #3022

yhsb2k opened this issue Jan 10, 2019 · 2 comments
Labels
debugger Feature Request help wanted Can be fixed in the public (open source) repo.

Comments

@yhsb2k
Copy link

yhsb2k 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
Copy link
Member

WardenGnaw commented Jan 10, 2019

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

@WardenGnaw WardenGnaw added debugger Feature Request help wanted Can be fixed in the public (open source) repo. labels Jan 10, 2019
@jasonwilliams
Copy link

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
Labels
debugger Feature Request help wanted Can be fixed in the public (open source) repo.
Projects
None yet
Development

No branches or pull requests

3 participants