Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing 'debug' command from Play 2.0 installed from Typesafe

I installed play 2.0 from the typesafe stack.

However, when i try to run sbt debug run it gives me the error:

[error] Not a valid key: debug (similar: idea)

Any suggestions on how to run a debug server?

like image 282
user601144 Avatar asked Mar 22 '12 06:03

user601144


People also ask

How do I run a debug in play framework?

menu (compile your project first). To debug, start your application with activator -jvm-debug 9999 run and in Eclipse right-click on the project and select Debug As, Debug Configurations. In the Debug Configurations dialog, right-click on Remote Java Application and select New. Change Port to 9999 and click Apply.

How do I run a play framework?

To run a Play application: Create a new Run Configuration – From the main menu, select Run -> Edit Configurations. Click on the + to add a new configuration. From the list of configurations, choose “sbt Task”


1 Answers

In order to debug with the sbt command instead of the play command, you have the option to set the env. variable SBT_OPTS with the classical
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999

Source : https://groups.google.com/forum/?hl=fr&fromgroups#!topic/play-framework/-RVlEh8S2F4

like image 87
Julien Lafont Avatar answered Sep 29 '22 22:09

Julien Lafont