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 VSCode native debug launcher that attaches to java process. #117

Merged

Conversation

brettle
Copy link
Member

@brettle brettle commented Jul 16, 2024

Note that this includes PR #114.

Other notes:

In my experience on linux searching for "executor" brings up the "Gradle Test Executor" java process of interest when debugging tests hanging in native code.

The sourceFileMap assumes that that wpilib source is installed under $HOME/git/allwpilib. If it isn't, you can still see stack traces, you just won't be able to see the wpilib source.

The "program" location probably needs a windows specific version, maybe with ${env:HOME} replaced with ${env:ALLUSERSPROFILE} or "C:\Users\Public"?

In my experience on linux searching for "executor" brings up  the "Gradle Test Executor" java process of interest when debugging tests hanging in native code.

Note that the sourceFileMap assumes that that wpilib source is installed under $HOME/git/allwpilib. If it isn't, you can still see stack traces, you just won't be able to see the wpilib source.

The "program" location probably needs a windows specific version, maybe with ${env:HOME} replaced with ${env:ALLUSERSPROFILE}?
.vscode/launch.json Show resolved Hide resolved
.vscode/launch.json Outdated Show resolved Hide resolved
brettle and others added 2 commits July 17, 2024 15:09
Co-authored-by: CoolSpy3 <55305038+CoolSpy3@users.noreply.github.com>
Copy link
Member

@CoolSpy3 CoolSpy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@brettle brettle merged commit c9cad9c into master Jul 17, 2024
3 checks passed
@brettle brettle deleted the add-vscode-debug-launcher-that-attaches-to-java-process branch July 17, 2024 22:28
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

Successfully merging this pull request may close these issues.

2 participants