[play-framework] Intellij run/debug

1,633 views
Skip to first unread message

dth

unread,
Apr 28, 2010, 10:49:45 AM4/28/10
to play-framework
Hi,

The description of using play! with intellij mentions "You can use the
Run and Debug using the context menu.".

I have imported the iml in an intellij project, but I am not sure what
context menu is referred to. So I don't know what/how to run/debug.

What am I missing?

Thanks,

-denns

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

dth

unread,
May 7, 2010, 8:22:20 AM5/7/10
to play-framework
Anyone?

Thanks.

-dennis

On Apr 28, 4:49 pm, dth <q...@qabi.dk> wrote:
> Hi,
>
> The description of using play! withintellijmentions "You can use the
> Run and Debug using the context menu.".
>
> I have imported the iml in anintellijproject, but I am not sure what
> context menu is referred to. So I don't know what/how to run/debug.
>
> What am I missing?

Watter

unread,
May 7, 2010, 3:41:04 PM5/7/10
to play-framework
> The description of using play! with intellij mentions "You can use the
> Run and Debug using the context menu.".
>
> I have imported the iml in an intellij project, but I am not sure what
> context menu is referred to. So I don't know what/how to run/debug.

I'm not sure about the "run" aspect, but debug works just liek
debugging any other remote application:

1) Start your app in using the normal "play run" command. While in dev
mode, play defaults to running the app with a debug listening port
open. I forget the actual port number, but its' printed out when you
start the app.

2) In IDEA, create a Run/Debug configuration of the type "Remote".
Change the "port" field to whatever Play printed out when you started
it.

3) Start the previously created remote debug configuration. Any
breakpoints you set will be hit just like normal.

Mike Grove

unread,
May 7, 2010, 4:18:39 PM5/7/10
to play-fr...@googlegroups.com
I have Intellij set up to run play directly, which works very nicely.  Just create a run configuration with "play.server.Server" as the main class.

Then in your VM parameters:

-Dapplication.path=<the path to your app directory> -Djavaagent=<path to play.jar>

then you can run and debug like you would normally and you don't have to have a remote setup or run play from another application ie the terminal.

Hope that helps.

Mike

dth

unread,
May 9, 2010, 2:10:08 AM5/9/10
to play-framework
Great. Just what I needed. Thanks!

The documentation just sounds like runtime configuration is added to
the iml file by "idealize" or something like that.

-dennis
> > play-framewor...@googlegroups.com<play-framework%2Bunsubscribe@go oglegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/play-framework?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.

Jaime Hablutzel Egoavil

unread,
Mar 12, 2013, 7:44:55 PM3/12/13
to play-fr...@googlegroups.com
It would be nice that IntelliJ IDEA ships a "Play Framework" Run/Debug configuration to avoid the newcomer confusion

Raul Raja Martinez

unread,
Mar 12, 2013, 7:54:52 PM3/12/13
to play-fr...@googlegroups.com
You can just...

1. Create a new run configuration for a "new remote application" on the run configuration menu where you usually run stuff.

2. Then just start play with debug support. 

play debug run

3. After that adjust the run configuration to match the port of the debugger printed out in the console. 9999 if I'm not mistaken by default. 

4. Start the debugger in IntelliJ 

Breakpoints and the usual debugging option should work.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages