Debugging Playframework with IntelliJ IDEA



To debug your application with IntelliJ is pretty straight forward.

Setup command prompt 

1. Run the following command
$ activator -jvm-debug 9999

2. You will probably see something like this

Listening for transport dt_socket at address: 9999
3. Wait for the command prompt to appear and type  "Run" - If you have your application running, please stop the running process.


Setting up your IntelliJ 

1.In your IDE, goto Run -> Edit Configuration. Add "Remote" and configure the port to point to 9999.  Example of your configuration could look something like this.





Save this configuration. Then run your remote debug configuration and at this point you would need to set your breakpoints.

Open up your browser and go to "localhost:9000" and you will hit your breakpoint.




Comments

Popular posts from this blog

OpenCover code coverage for .Net Core

Android Programmatically apply style to your view

Using Custom DLL with IronPython / Scripts