Skip to content

Debugging from IDEA with Spring boot starter parent 1.1.1-RELEASE broken? #1096

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

Closed
skufle opened this issue Jun 13, 2014 · 4 comments
Closed

Comments

@skufle
Copy link

skufle commented Jun 13, 2014

If I check out:

git clone https://github.com/spring-guides/gs-accessing-data-rest.git

which currently is based on

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.1.1.RELEASE</version>
</parent>

Then I can not remote debug from IntelliJ IDEA, it does not stop at breakpoints.

If I change it to use:

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.0.2.RELEASE</version>
</parent>

Then remote debug works.

I can see that the latter is Java 1.6 based and the new one is 1.7 based.

Any ideas on how to get it to work again?

@snicoll
Copy link
Member

snicoll commented Jun 13, 2014

possible duplicate of #1095 ? which command are you running to enable remote debugging exactly?

@snicoll
Copy link
Member

snicoll commented Jun 13, 2014

Just a thought, why can't you start you app directly in IDEA instead of using remote debugging? (Right click, Debug on the main class)

@skufle
Copy link
Author

skufle commented Jun 13, 2014

I use the spring-boot:run goal. I can see that IDEA adds the argument

-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:33945,suspend=y,server=n

to the java command.

Had not thought about starting the main class directly, I will do that instead. Thanks for your fast response!

You can close the issue if you want but perhaps it would be a good idea to add some description on how to get it to work on:

http://docs.spring.io/spring-boot/docs/1.1.2.BUILD-SNAPSHOT/maven-plugin/examples/run-debug.html

if you can figure out how to.

@dsyer dsyer closed this as completed Jun 13, 2014
@snicoll
Copy link
Member

snicoll commented Jun 13, 2014

Intellij is doing that and there's nothing we can do. Let's hope the support that goal natively in the near future.

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

3 participants