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

Support for smap #1511

Closed
b-tsao opened this issue Sep 12, 2024 · 3 comments
Closed

Support for smap #1511

b-tsao opened this issue Sep 12, 2024 · 3 comments

Comments

@b-tsao
Copy link

b-tsao commented Sep 12, 2024

I'm currently developing an extension that translate and generates a java file with a smap. I'm seeing if vscode-java-debug extension is able to support debugging the file given the smap but I don't see any options to supply the smap.

Would what I'm trying to do be possible here?

@b-tsao
Copy link
Author

b-tsao commented Sep 19, 2024

Update:

I was able to integrate the smap into the class file SourceDebugExtension following JSR045 specifications and I'm able to stop at the breakpoints and see the variable values.

However vscode-java-debug seems to particularly require ".java" extension files in order for the other debug functionality like line highlighting to show up.

@b-tsao
Copy link
Author

b-tsao commented Sep 24, 2024

Opened an issue on java-debug since I'm not sure where this problem is from microsoft/java-debug#572

@b-tsao
Copy link
Author

b-tsao commented Sep 26, 2024

Resolved by modifying the smap to remove the file path.

@b-tsao b-tsao closed this as completed Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant