[2.0.4] Using Eclipse: Computer-database example in debug mode

56 views
Skip to first unread message

David F

unread,
Oct 6, 2012, 4:01:29 PM10/6/12
to play-fr...@googlegroups.com
After eclipsify and import into Eclipse I follow the instructions of:
1.  in console "play run debug"
2.  in eclipse rt click on computer-database, debug mode remote java application, localhost and port 9999.

But all I get is an error message that it cannot connect with the VM.  

Neither this google group nor stackexchange explains the problem.

In eclipse, I also try to set a breakpoint and then run the application but instead of running the application that I'm in (the computer-database) it asks whether I want to run a Junit, or Java application, etc.

So also, how do you simply get the application to run when setting a breakpoint?
How do you get past this VM connection problem message?

I own Peter Hilton's Manning/MEAP "Play for Scala" but he does not bring up debugging in Eclipse in his book.

TIA.


James Roper

unread,
Oct 7, 2012, 9:30:28 PM10/7/12
to play-fr...@googlegroups.com
Run "play debug run" not "play run debug".  When running it, you should see the following as the first line of output:

Listening for transport dt_socket at address: 9999

David F

unread,
Oct 8, 2012, 9:11:55 PM10/8/12
to play-fr...@googlegroups.com
Thank you!
Reply all
Reply to author
Forward
0 new messages