PlayFramework: Run and Debug Using IDE

Introduction

I think each of us looking for the best IDE and best way of development. I think the best code editor is IntellJ IDEA and I am using it for 6 years. A few month ago I’ve started to use PlayFramework and were surprized that there is no way to debug application using IDE just browser and console logs and messages. After short investigation I’ve found solution …

Solution

This step-by-step solution for IntellJ IDEA but I think you can use it for other IDEs.

Step1
Go to  Run/Debug Configurations and add Application configuration

Step 2
Put  main class

play.server.Server

Step 3
Add VM Options

-Dapplication.path=<Path to your application>

-Djavaagent=<Path to play framework>/play-1.2.3.jar

And that is all…

Cheers!!!

READ  Algorithm {Evaluate Reverse Polish Notation}

Leave a Reply

Your email address will not be published. Required fields are marked *