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

chore: Add developer documentation describing how to debug sbt cmds #2196

Closed
wants to merge 1 commit into from

Conversation

BrendanWalsh
Copy link
Collaborator

Add developer documentation describing how to debug sbt commands in IDEA

@acrolinxatmsft1
Copy link

Acrolinx Scorecards

A minimum total score of 80 is required.

Select the total score link to review all feedback on clarity, consistency, tone, brand, terms, spelling, grammar, readability, and inclusive language. You should fix all spelling errors regardless of your total score. Fixing spelling errors helps maintain customer trust in overall content quality.

Article Total score
(Required: 80)
Words + phrases
(Brand, terms)
Correctness
(Spelling, grammar)
Clarity
(Readability)
docs/Reference/Developer Setup.md 76 100 59 64

More information about Acrolinx

Comment on lines +142 to +152

## Debugging sbt Commands in IDEA
To debug sbt commands directly in eclipse you must use remote jvm debugging.
1. Create a new remote run/debug configuration in IDEA with the following arguments for the remote JVM

```-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005```
3. Run sbt in the terminal with `sbt -jvm-debug 5005`
4. Run the newly created run/debug configuration. It should say something like

```Connected to the target VM, address: 'localhost:5005', transport: 'socket'```
6. Set breakpoints and run your sbt command from the debug-enabled terminal session. The debug configuration is tied to the remote sbt session, so you can run the command multiple times without restarting the debug session.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think all you need to do is use the sbt shell in intelliJ?

@BrendanWalsh BrendanWalsh deleted the BrendanWalsh-patch-2 branch April 30, 2024 19:11
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.

3 participants