Debugging Play 2.4 with Intellij 15

811 views
Skip to first unread message

Alex Mueller

unread,
Feb 7, 2016, 4:56:33 PM2/7/16
to play-framework
I can get a simple Play 2.4 application to run just fine in IntelliJ 15, but I cannot get debugging to work. I have tried following instructions from IntelliJ and Play, neither work for me. 


I have used three approaches, two in Intellij, one via a terminal window. With Intellij, I have the following settings to run the project, with details below. 

Sorry for the all the console output, but I am not sure what else to provide. Thanks for any help!

1. Play 2 App
JVM Options: -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M
Debug Port: 9999
Play2 Module: root

I click on run or debug (buttons within Intellij to launch it) and both do the same thing, and no breakpoints are hit. I use the browser to navigate to localhost:9000 and it runs fine, but I cannot debug. localhost:9999 is not responding, it returns nothing. I am using the browser and postman as clients.

/usr/lib/jvm/java-8-oracle/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:49616,suspend=y,server=n -Dfile.encoding=UTF8 -Djline.terminal=none -Dsbt.log.noformat=true -Dsbt.global.base=/tmp/sbt-global-plugin0stub -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M -classpath /home/alex/.IntelliJIdea15/config/plugins/Scala/launcher/sbt-launch.jar:/opt/idea/lib/idea_rt.jar xsbt.boot.Boot run
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Connected to the target VM, address: '127.0.0.1:49616', transport: 'socket'
[info] Loading project definition from /home/alex/projects/play-java-rest/project
[info] Set current project to template-api-rest-java-playframework (in build file:/home/alex/projects/play-java-rest/)
[info] Updating {file:/home/alex/projects/play-java-rest/}root...
[info] Resolving org.scala-lang#scala-library;2.11.6 ...
[info] Resolving com.typesafe.play#twirl-api_2.11;1.1.1 ...
[info] Resolving org.apache.commons#commons-lang3;3.4 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.1 ...
[info] Resolving com.typesafe.play#play-enhancer;1.1.0 ...
[info] Resolving org.javassist#javassist;3.18.2-GA ...
[info] Resolving com.typesafe.play#play-server_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#build-link;2.4.3 ...
[info] Resolving com.typesafe.play#play-exceptions;2.4.3 ...
[info] Resolving org.javassist#javassist;3.19.0-GA ...
[info] Resolving com.typesafe.play#play-iteratees_2.11;2.4.3 ...
[info] Resolving org.scala-stm#scala-stm_2.11;0.7 ...
[info] Resolving com.typesafe#config;1.3.0 ...
[info] Resolving com.typesafe.play#play-json_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-functional_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-datacommons_2.11;2.4.3 ...
[info] Resolving joda-time#joda-time;2.8.1 ...
[info] Resolving org.joda#joda-convert;1.7 ...
[info] Resolving org.scala-lang#scala-reflect;2.11.6 ...
[info] Resolving com.fasterxml.jackson.core#jackson-core;2.5.4 ...
[info] Resolving com.fasterxml.jackson.core#jackson-annotations;2.5.4 ...
[info] Resolving com.fasterxml.jackson.core#jackson-databind;2.5.4 ...
[info] Resolving com.fasterxml.jackson.datatype#jackson-datatype-jdk8;2.5.4 ...
[info] Resolving com.fasterxml.jackson.datatype#jackson-datatype-jsr310;2.5.4 ...
[info] Resolving com.typesafe.play#play-netty-utils;2.4.3 ...
[info] Resolving org.slf4j#slf4j-api;1.7.12 ...
[info] Resolving org.slf4j#jul-to-slf4j;1.7.12 ...
[info] Resolving org.slf4j#jcl-over-slf4j;1.7.12 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.1 ...
[info] Resolving ch.qos.logback#logback-core;1.1.3 ...
[info] Resolving ch.qos.logback#logback-classic;1.1.3 ...
[info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.13 ...
[info] Resolving com.typesafe.akka#akka-slf4j_2.11;2.3.13 ...
[info] Resolving commons-codec#commons-codec;1.10 ...
[info] Resolving xerces#xercesImpl;2.11.0 ...
[info] Resolving xml-apis#xml-apis;1.4.01 ...
[info] Resolving javax.transaction#jta;1.1 ...
[info] Resolving com.google.inject#guice;4.0 ...
[info] Resolving javax.inject#javax.inject;1 ...
[info] Resolving aopalliance#aopalliance;1.0 ...
[info] Resolving com.google.guava#guava;16.0.1 ...
[info] Resolving com.google.inject.extensions#guice-assistedinject;4.0 ...
[info] Resolving com.google.inject.extensions#extensions-parent;4.0 ...
[info] Resolving com.typesafe.play#play-java_2.11;2.4.3 ...
[info] Resolving org.scala-lang.modules#scala-java8-compat_2.11;0.3.0 ...
[info] Resolving org.yaml#snakeyaml;1.15 ...
[info] Resolving org.hibernate#hibernate-validator;5.0.3.Final ...
[info] Resolving javax.validation#validation-api;1.1.0.Final ...
[info] Resolving org.jboss.logging#jboss-logging;3.1.1.GA ...
[info] Resolving com.fasterxml#classmate;1.0.0 ...
[info] Resolving org.jboss.logging#jboss-logging;3.2.1.Final ...
[info] Resolving org.springframework#spring-context;4.1.6.RELEASE ...
[info] Resolving org.springframework#spring-core;4.1.6.RELEASE ...
[info] Resolving org.springframework#spring-beans;4.1.6.RELEASE ...
[info] Resolving org.reflections#reflections;0.9.9 ...
[info] Resolving com.google.code.findbugs#annotations;2.0.1 ...
[info] Resolving net.jodah#typetools;0.4.1 ...
[info] Resolving com.google.guava#guava;18.0 ...
[info] Resolving com.google.code.findbugs#jsr305;2.0.3 ...
[info] Resolving org.apache.tomcat#tomcat-servlet-api;8.0.21 ...
[info] Resolving com.typesafe.play#play-netty-server_2.11;2.4.3 ...
[info] Resolving io.netty#netty;3.10.4.Final ...
[info] Resolving com.typesafe.netty#netty-http-pipelining;1.1.4 ...
[info] Resolving com.typesafe.play#play-java-jpa_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-java-jdbc_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-jdbc_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-jdbc-api_2.11;2.4.3 ...
[info] Resolving com.jolbox#bonecp;0.8.0.RELEASE ...
[info] Resolving com.zaxxer#HikariCP;2.3.7 ...
[info] Resolving com.h2database#h2;1.4.187 ...
[info] Resolving tyrex#tyrex;1.0.1 ...
[info] Resolving org.hibernate.javax.persistence#hibernate-jpa-2.1-api;1.0.0.Final ...
[info] Resolving org.hibernate#hibernate-entitymanager;4.3.7.Final ...
[info] Resolving org.jboss.logging#jboss-logging-annotations;1.2.0.Beta1 ...
[info] Resolving org.hibernate#hibernate-core;4.3.7.Final ...
[info] Resolving org.jboss.spec.javax.transaction#jboss-transaction-api_1.2_spec;1.0.0.Final ...
[info] Resolving dom4j#dom4j;1.6.1 ...
[info] Resolving org.hibernate.common#hibernate-commons-annotations;4.0.5.Final ...
[info] Resolving antlr#antlr;2.7.7 ...
[info] Resolving org.jboss#jandex;1.1.0.Final ...
[info] Resolving mysql#mysql-connector-java;5.1.18 ...
[info] Resolving org.dbunit#dbunit;2.4.9 ...
[info] Resolving junit#junit;3.8.2 ...
[info] Resolving commons-collections#commons-collections;3.2.1 ...
[info] Resolving com.typesafe.play#play-cache_2.11;2.4.3 ...
[info] Resolving net.sf.ehcache#ehcache-core;2.6.11 ...
[info] Resolving com.typesafe.play#play-java-ws_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-ws_2.11;2.4.3 ...
[info] Resolving com.ning#async-http-client;1.9.21 ...
[info] Resolving oauth.signpost#signpost-core;1.2.1.2 ...
[info] Resolving oauth.signpost#signpost-commonshttp4;1.2.1.2 ...
[info] Resolving org.apache.httpcomponents#httpcore;4.0.1 ...
[info] Resolving org.apache.httpcomponents#httpclient;4.0.1 ...
[info] Resolving commons-logging#commons-logging;1.1.1 ...
[info] Resolving org.codehaus.jackson#jackson-mapper-asl;1.8.5 ...
[info] Resolving org.codehaus.jackson#jackson-core-asl;1.8.5 ...
[info] Resolving com.typesafe.play#play-test_2.11;2.4.3 ...
[info] Resolving junit#junit;4.12 ...
[info] Resolving org.hamcrest#hamcrest-core;1.3 ...
[info] Resolving com.novocode#junit-interface;0.11 ...
[info] Resolving org.scala-sbt#test-interface;1.0 ...
[info] Resolving org.fluentlenium#fluentlenium-core;0.10.3 ...
[info] Resolving org.seleniumhq.selenium#selenium-java;2.44.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-chrome-driver;2.44.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-remote-driver;2.44.0 ...
[info] Resolving cglib#cglib-nodep;2.1_3 ...
[info] Resolving com.google.code.gson#gson;2.3 ...
[info] Resolving org.seleniumhq.selenium#selenium-api;2.44.0 ...
[info] Resolving org.apache.httpcomponents#httpclient;4.3.4 ...
[info] Resolving org.apache.httpcomponents#httpcore;4.3.2 ...
[info] Resolving commons-logging#commons-logging;1.1.3 ...
[info] Resolving org.apache.commons#commons-exec;1.1 ...
[info] Resolving net.java.dev.jna#jna;3.4.0 ...
[info] Resolving net.java.dev.jna#platform;3.4.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-htmlunit-driver;2.44.0 ...
[info] Resolving net.sourceforge.htmlunit#htmlunit;2.15 ...
[info] Resolving xalan#xalan;2.7.1 ...
[info] Resolving xalan#serializer;2.7.1 ...
[info] Resolving org.apache.httpcomponents#httpmime;4.3.3 ...
[info] Resolving net.sourceforge.htmlunit#htmlunit-core-js;2.15 ...
[info] Resolving net.sourceforge.nekohtml#nekohtml;1.9.21 ...
[info] Resolving net.sourceforge.cssparser#cssparser;0.9.14 ...
[info] Resolving org.w3c.css#sac;1.3 ...
[info] Resolving commons-io#commons-io;2.4 ...
[info] Resolving org.eclipse.jetty#jetty-websocket;8.1.15.v20140411 ...
[info] Resolving org.eclipse.jetty#jetty-util;8.1.15.v20140411 ...
[info] Resolving org.eclipse.jetty#jetty-io;8.1.15.v20140411 ...
[info] Resolving org.eclipse.jetty#jetty-http;8.1.15.v20140411 ...
[info] Resolving org.seleniumhq.selenium#selenium-firefox-driver;2.44.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-ie-driver;2.44.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-safari-driver;2.44.0 ...
[info] Resolving org.webbitserver#webbit;0.4.14 ...
[info] Resolving org.seleniumhq.selenium#selenium-support;2.44.0 ...
[info] Resolving junit#junit;4.11 ...
[info] Resolving com.typesafe.play#play-omnidoc_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-docs_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-doc_2.11;1.2.2 ...
[info] Resolving org.pegdown#pegdown;1.4.0 ...
[info] Resolving org.parboiled#parboiled-java;1.1.5 ...
[info] Resolving org.parboiled#parboiled-core;1.1.5 ...
[info] Resolving org.ow2.asm#asm;4.1 ...
[info] Resolving org.ow2.asm#asm-tree;4.1 ...
[info] Resolving org.ow2.asm#asm-analysis;4.1 ...
[info] Resolving org.ow2.asm#asm-util;4.1 ...
[info] Resolving org.scala-lang#scala-compiler;2.11.6 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.3 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.3 ...
[info] Resolving jline#jline;2.12.1 ...
[info] Resolving com.typesafe.play#fork-run_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#fork-run-protocol_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#run-support_2.11;2.4.3 ...
[info] Resolving com.typesafe.sbtrc#client-2-11;0.3.1 ...
[info] Resolving org.scala-lang#scala-reflect;2.11.5 ...
[info] Resolving org.scala-sbt#serialization_2.11;0.1.0 ...
[info] Resolving org.scala-lang.modules#scala-pickling_2.11;0.10.0 ...
[info] Resolving org.scala-lang#scala-compiler;2.11.4 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.2 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.2 ...
[info] Resolving org.json4s#json4s-core_2.11;3.2.10 ...
[info] Resolving org.json4s#json4s-ast_2.11;3.2.10 ...
[info] Resolving com.thoughtworks.paranamer#paranamer;2.6 ...
[info] Resolving org.spire-math#jawn-parser_2.11;0.6.0 ...
[info] Resolving org.spire-math#json4s-support_2.11;0.6.0 ...
[info] Resolving org.scala-sbt#launcher-interface;0.13.8-M3 ...
[info] Resolving org.scala-sbt#interface;0.13.8-M3 ...
[info] Resolving org.scala-sbt#io_2.11;0.13.8-M3 ...
[info] Resolving org.scala-sbt#control_2.11;0.13.8-M3 ...
[info] Resolving org.scala-sbt#collections_2.11;0.13.8-M3 ...
[info] Resolving com.typesafe.sbtrc#actor-client-2-11;0.3.1 ...
[info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.8 ...
[info] Resolving com.typesafe#config;1.2.1 ...
[info] Resolving com.typesafe.akka#akka-testkit_2.11;2.3.8 ...
[info] Resolving net.contentobjects.jnotify#jnotify;0.94-play-1 ...
[info] Done updating.
[info] Setting up Play fork run ... (use Ctrl+D to cancel)
[info] Updating {file:/home/alex/projects/play-java-rest/}root...
[info] Resolving org.scala-lang#scala-library;2.11.6 ...
[info] Resolving com.typesafe.play#twirl-api_2.11;1.1.1 ...
[info] Resolving org.apache.commons#commons-lang3;3.4 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.1 ...
[info] Resolving com.typesafe.play#play-enhancer;1.1.0 ...
[info] Resolving org.javassist#javassist;3.18.2-GA ...
[info] Resolving com.typesafe.play#play-server_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#build-link;2.4.3 ...
[info] Resolving com.typesafe.play#play-exceptions;2.4.3 ...
[info] Resolving org.javassist#javassist;3.19.0-GA ...
[info] Resolving com.typesafe.play#play-iteratees_2.11;2.4.3 ...
[info] Resolving org.scala-stm#scala-stm_2.11;0.7 ...
[info] Resolving com.typesafe#config;1.3.0 ...
[info] Resolving com.typesafe.play#play-json_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-functional_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-datacommons_2.11;2.4.3 ...
[info] Resolving joda-time#joda-time;2.8.1 ...
[info] Resolving org.joda#joda-convert;1.7 ...
[info] Resolving org.scala-lang#scala-reflect;2.11.6 ...
[info] Resolving com.fasterxml.jackson.core#jackson-core;2.5.4 ...
[info] Resolving com.fasterxml.jackson.core#jackson-annotations;2.5.4 ...
[info] Resolving com.fasterxml.jackson.core#jackson-databind;2.5.4 ...
[info] Resolving com.fasterxml.jackson.datatype#jackson-datatype-jdk8;2.5.4 ...
[info] Resolving com.fasterxml.jackson.datatype#jackson-datatype-jsr310;2.5.4 ...
[info] Resolving com.typesafe.play#play-netty-utils;2.4.3 ...
[info] Resolving org.slf4j#slf4j-api;1.7.12 ...
[info] Resolving org.slf4j#jul-to-slf4j;1.7.12 ...
[info] Resolving org.slf4j#jcl-over-slf4j;1.7.12 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.1 ...
[info] Resolving ch.qos.logback#logback-core;1.1.3 ...
[info] Resolving ch.qos.logback#logback-classic;1.1.3 ...
[info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.13 ...
[info] Resolving com.typesafe.akka#akka-slf4j_2.11;2.3.13 ...
[info] Resolving commons-codec#commons-codec;1.10 ...
[info] Resolving xerces#xercesImpl;2.11.0 ...
[info] Resolving xml-apis#xml-apis;1.4.01 ...
[info] Resolving javax.transaction#jta;1.1 ...
[info] Resolving com.google.inject#guice;4.0 ...
[info] Resolving javax.inject#javax.inject;1 ...
[info] Resolving aopalliance#aopalliance;1.0 ...
[info] Resolving com.google.guava#guava;16.0.1 ...
[info] Resolving com.google.inject.extensions#guice-assistedinject;4.0 ...
[info] Resolving com.google.inject.extensions#extensions-parent;4.0 ...
[info] Resolving com.typesafe.play#play-java_2.11;2.4.3 ...
[info] Resolving org.scala-lang.modules#scala-java8-compat_2.11;0.3.0 ...
[info] Resolving org.yaml#snakeyaml;1.15 ...
[info] Resolving org.hibernate#hibernate-validator;5.0.3.Final ...
[info] Resolving javax.validation#validation-api;1.1.0.Final ...
[info] Resolving org.jboss.logging#jboss-logging;3.1.1.GA ...
[info] Resolving com.fasterxml#classmate;1.0.0 ...
[info] Resolving org.jboss.logging#jboss-logging;3.2.1.Final ...
[info] Resolving org.springframework#spring-context;4.1.6.RELEASE ...
[info] Resolving org.springframework#spring-core;4.1.6.RELEASE ...
[info] Resolving org.springframework#spring-beans;4.1.6.RELEASE ...
[info] Resolving org.reflections#reflections;0.9.9 ...
[info] Resolving com.google.code.findbugs#annotations;2.0.1 ...
[info] Resolving net.jodah#typetools;0.4.1 ...
[info] Resolving com.google.guava#guava;18.0 ...
[info] Resolving com.google.code.findbugs#jsr305;2.0.3 ...
[info] Resolving org.apache.tomcat#tomcat-servlet-api;8.0.21 ...
[info] Resolving com.typesafe.play#play-netty-server_2.11;2.4.3 ...
[info] Resolving io.netty#netty;3.10.4.Final ...
[info] Resolving com.typesafe.netty#netty-http-pipelining;1.1.4 ...
[info] Resolving com.typesafe.play#play-java-jpa_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-java-jdbc_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-jdbc_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-jdbc-api_2.11;2.4.3 ...
[info] Resolving com.jolbox#bonecp;0.8.0.RELEASE ...
[info] Resolving com.zaxxer#HikariCP;2.3.7 ...
[info] Resolving com.h2database#h2;1.4.187 ...
[info] Resolving tyrex#tyrex;1.0.1 ...
[info] Resolving org.hibernate.javax.persistence#hibernate-jpa-2.1-api;1.0.0.Final ...
[info] Resolving org.hibernate#hibernate-entitymanager;4.3.7.Final ...
[info] Resolving org.jboss.logging#jboss-logging-annotations;1.2.0.Beta1 ...
[info] Resolving org.hibernate#hibernate-core;4.3.7.Final ...
[info] Resolving org.jboss.spec.javax.transaction#jboss-transaction-api_1.2_spec;1.0.0.Final ...
[info] Resolving dom4j#dom4j;1.6.1 ...
[info] Resolving org.hibernate.common#hibernate-commons-annotations;4.0.5.Final ...
[info] Resolving antlr#antlr;2.7.7 ...
[info] Resolving org.jboss#jandex;1.1.0.Final ...
[info] Resolving mysql#mysql-connector-java;5.1.18 ...
[info] Resolving org.dbunit#dbunit;2.4.9 ...
[info] Resolving junit#junit;3.8.2 ...
[info] Resolving commons-collections#commons-collections;3.2.1 ...
[info] Resolving com.typesafe.play#play-cache_2.11;2.4.3 ...
[info] Resolving net.sf.ehcache#ehcache-core;2.6.11 ...
[info] Resolving com.typesafe.play#play-java-ws_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-ws_2.11;2.4.3 ...
[info] Resolving com.ning#async-http-client;1.9.21 ...
[info] Resolving oauth.signpost#signpost-core;1.2.1.2 ...
[info] Resolving oauth.signpost#signpost-commonshttp4;1.2.1.2 ...
[info] Resolving org.apache.httpcomponents#httpcore;4.0.1 ...
[info] Resolving org.apache.httpcomponents#httpclient;4.0.1 ...
[info] Resolving commons-logging#commons-logging;1.1.1 ...
[info] Resolving org.codehaus.jackson#jackson-mapper-asl;1.8.5 ...
[info] Resolving org.codehaus.jackson#jackson-core-asl;1.8.5 ...
[info] Resolving com.typesafe.play#play-test_2.11;2.4.3 ...
[info] Resolving junit#junit;4.12 ...
[info] Resolving org.hamcrest#hamcrest-core;1.3 ...
[info] Resolving com.novocode#junit-interface;0.11 ...
[info] Resolving org.scala-sbt#test-interface;1.0 ...
[info] Resolving org.fluentlenium#fluentlenium-core;0.10.3 ...
[info] Resolving org.seleniumhq.selenium#selenium-java;2.44.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-chrome-driver;2.44.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-remote-driver;2.44.0 ...
[info] Resolving cglib#cglib-nodep;2.1_3 ...
[info] Resolving com.google.code.gson#gson;2.3 ...
[info] Resolving org.seleniumhq.selenium#selenium-api;2.44.0 ...
[info] Resolving org.apache.httpcomponents#httpclient;4.3.4 ...
[info] Resolving org.apache.httpcomponents#httpcore;4.3.2 ...
[info] Resolving commons-logging#commons-logging;1.1.3 ...
[info] Resolving org.apache.commons#commons-exec;1.1 ...
[info] Resolving net.java.dev.jna#jna;3.4.0 ...
[info] Resolving net.java.dev.jna#platform;3.4.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-htmlunit-driver;2.44.0 ...
[info] Resolving net.sourceforge.htmlunit#htmlunit;2.15 ...
[info] Resolving xalan#xalan;2.7.1 ...
[info] Resolving xalan#serializer;2.7.1 ...
[info] Resolving org.apache.httpcomponents#httpmime;4.3.3 ...
[info] Resolving net.sourceforge.htmlunit#htmlunit-core-js;2.15 ...
[info] Resolving net.sourceforge.nekohtml#nekohtml;1.9.21 ...
[info] Resolving net.sourceforge.cssparser#cssparser;0.9.14 ...
[info] Resolving org.w3c.css#sac;1.3 ...
[info] Resolving commons-io#commons-io;2.4 ...
[info] Resolving org.eclipse.jetty#jetty-websocket;8.1.15.v20140411 ...
[info] Resolving org.eclipse.jetty#jetty-util;8.1.15.v20140411 ...
[info] Resolving org.eclipse.jetty#jetty-io;8.1.15.v20140411 ...
[info] Resolving org.eclipse.jetty#jetty-http;8.1.15.v20140411 ...
[info] Resolving org.seleniumhq.selenium#selenium-firefox-driver;2.44.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-ie-driver;2.44.0 ...
[info] Resolving org.seleniumhq.selenium#selenium-safari-driver;2.44.0 ...
[info] Resolving org.webbitserver#webbit;0.4.14 ...
[info] Resolving org.seleniumhq.selenium#selenium-support;2.44.0 ...
[info] Resolving junit#junit;4.11 ...
[info] Resolving com.typesafe.play#play-omnidoc_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-docs_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#play-doc_2.11;1.2.2 ...
[info] Resolving org.pegdown#pegdown;1.4.0 ...
[info] Resolving org.parboiled#parboiled-java;1.1.5 ...
[info] Resolving org.parboiled#parboiled-core;1.1.5 ...
[info] Resolving org.ow2.asm#asm;4.1 ...
[info] Resolving org.ow2.asm#asm-tree;4.1 ...
[info] Resolving org.ow2.asm#asm-analysis;4.1 ...
[info] Resolving org.ow2.asm#asm-util;4.1 ...
[info] Resolving org.scala-lang#scala-compiler;2.11.6 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.3 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.3 ...
[info] Resolving jline#jline;2.12.1 ...
[info] Resolving com.typesafe.play#fork-run_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#fork-run-protocol_2.11;2.4.3 ...
[info] Resolving com.typesafe.play#run-support_2.11;2.4.3 ...
[info] Resolving com.typesafe.sbtrc#client-2-11;0.3.1 ...
[info] Resolving org.scala-lang#scala-reflect;2.11.5 ...
[info] Resolving org.scala-sbt#serialization_2.11;0.1.0 ...
[info] Resolving org.scala-lang.modules#scala-pickling_2.11;0.10.0 ...
[info] Resolving org.scala-lang#scala-compiler;2.11.4 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.2 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.2 ...
[info] Resolving org.json4s#json4s-core_2.11;3.2.10 ...
[info] Resolving org.json4s#json4s-ast_2.11;3.2.10 ...
[info] Resolving com.thoughtworks.paranamer#paranamer;2.6 ...
[info] Resolving org.spire-math#jawn-parser_2.11;0.6.0 ...
[info] Resolving org.spire-math#json4s-support_2.11;0.6.0 ...
[info] Resolving org.scala-sbt#launcher-interface;0.13.8-M3 ...
[info] Resolving org.scala-sbt#interface;0.13.8-M3 ...
[info] Resolving org.scala-sbt#io_2.11;0.13.8-M3 ...
[info] Resolving org.scala-sbt#control_2.11;0.13.8-M3 ...
[info] Resolving org.scala-sbt#collections_2.11;0.13.8-M3 ...
[info] Resolving com.typesafe.sbtrc#actor-client-2-11;0.3.1 ...
[info] Resolving com.typesafe.akka#akka-actor_2.11;2.3.8 ...
[info] Resolving com.typesafe#config;1.2.1 ...
[info] Resolving com.typesafe.akka#akka-testkit_2.11;2.3.8 ...
[info] Resolving net.contentobjects.jnotify#jnotify;0.94-play-1 ...
[info] Done updating.
[info] 
[info] --- (Running the application, auto-reloading is enabled) ---
[info] 
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
[info] 
[info] (Server started, use Ctrl+D to stop and go back to the console...)
[info] 



2. SBT Task
Tasks: run
VM Parameters: -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M
Environment variaibles: <none>

/usr/lib/jvm/java-8-oracle/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:39295,suspend=y,server=n -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M -Dfile.encoding=UTF-8 -classpath /home/alex/.IntelliJIdea15/config/plugins/Scala/launcher/sbt-launch.jar:/opt/idea/lib/idea_rt.jar xsbt.boot.Boot run
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Connected to the target VM, address: '127.0.0.1:39295', transport: 'socket'
[info] Loading project definition from /home/alex/projects/play-java-rest/project
[info] Updating {file:/home/alex/projects/play-java-rest/project/}play-java-rest-build...
[info] Resolving com.typesafe.play#sbt-fork-run-plugin;2.4.3 ...
[info] Resolving com.typesafe.play#sbt-fork-run-protocol_2.10;2.4.3 ...
[info] Resolving org.scala-lang#scala-library;2.10.4 ...
[info] Resolving com.typesafe.play#sbt-run-support_2.10;2.4.3 ...
[info] Resolving com.typesafe.play#build-link;2.4.3 ...
[info] Resolving com.typesafe.play#play-exceptions;2.4.3 ...
[info] Resolving org.javassist#javassist;3.19.0-GA ...
[info] Resolving com.typesafe.sbtrc#client-2-10;0.3.1 ...
[info] Resolving org.scala-lang#scala-reflect;2.10.4 ...
[info] Resolving org.scala-sbt#serialization_2.10;0.1.0 ...
[info] Resolving org.scala-lang.modules#scala-pickling_2.10;0.10.0 ...
[info] Resolving org.scala-lang#scala-compiler;2.10.4 ...
[info] Resolving org.scalamacros#quasiquotes_2.10;2.0.1 ...
[info] Resolving org.json4s#json4s-core_2.10;3.2.10 ...
[info] Resolving org.json4s#json4s-ast_2.10;3.2.10 ...
[info] Resolving com.thoughtworks.paranamer#paranamer;2.6 ...
[info] Resolving org.spire-math#jawn-parser_2.10;0.6.0 ...
[info] Resolving org.spire-math#json4s-support_2.10;0.6.0 ...
[info] Resolving org.scala-sbt#launcher-interface;0.13.8-M3 ...
[info] Resolving org.scala-sbt#interface;0.13.8-M3 ...
[info] Resolving org.scala-sbt#io;0.13.8-M3 ...
[info] Resolving org.scala-sbt#control;0.13.8-M3 ...
[info] Resolving org.scala-sbt#collections;0.13.8-M3 ...
[info] Resolving com.typesafe.play#sbt-plugin;2.4.3 ...
[info] Resolving com.typesafe.play#routes-compiler_2.10;2.4.3 ...
[info] Resolving com.typesafe.play#twirl-api_2.10;1.1.1 ...
[info] Resolving org.apache.commons#commons-lang3;3.4 ...
[info] Resolving commons-io#commons-io;2.4 ...
[info] Resolving com.typesafe#config;1.3.0 ...
[info] Resolving com.google.guava#guava;18.0 ...
[info] Resolving com.h2database#h2;1.4.187 ...
[info] Resolving net.contentobjects.jnotify#jnotify;0.94-play-1 ...
[info] Resolving com.typesafe.sbt#sbt-twirl;1.1.1 ...
[info] Resolving com.typesafe.play#twirl-compiler_2.10;1.1.1 ...
[info] Resolving com.typesafe.play#twirl-parser_2.10;1.1.1 ...
[info] Resolving com.typesafe.sbt#sbt-native-packager;1.0.1 ...
[info] Resolving org.apache.commons#commons-compress;1.4.1 ...
[info] Resolving org.tukaani#xz;1.0 ...
[info] Resolving org.vafer#jdeb;1.3 ...
[info] Resolving org.apache.commons#commons-compress;1.7 ...
[info] Resolving org.tukaani#xz;1.4 ...
[info] Resolving org.apache.maven#maven-core;3.2.2 ...
[info] Resolving org.apache.maven#maven-model;3.2.2 ...
[info] Resolving org.codehaus.plexus#plexus-utils;3.0.17 ...
[info] Resolving org.apache.maven#maven-settings;3.2.2 ...
[info] Resolving org.apache.maven#maven-settings-builder;3.2.2 ...
[info] Resolving org.codehaus.plexus#plexus-interpolation;1.19 ...
[info] Resolving org.codehaus.plexus#plexus-component-annotations;1.5.5 ...
[info] Resolving org.sonatype.plexus#plexus-sec-dispatcher;1.3 ...
[info] Resolving org.sonatype.plexus#plexus-cipher;1.7 ...
[info] Resolving org.apache.maven#maven-repository-metadata;3.2.2 ...
[info] Resolving org.apache.maven#maven-artifact;3.2.2 ...
[info] Resolving org.apache.maven#maven-plugin-api;3.2.2 ...
[info] Resolving org.eclipse.sisu#org.eclipse.sisu.plexus;0.0.0.M5 ...
[info] Resolving javax.enterprise#cdi-api;1.0 ...
[info] Resolving javax.annotation#jsr250-api;1.0 ...
[info] Resolving javax.inject#javax.inject;1 ...
[info] Resolving org.sonatype.sisu#sisu-guice;3.1.3 ...
[info] Resolving aopalliance#aopalliance;1.0 ...
[info] Resolving org.eclipse.sisu#org.eclipse.sisu.inject;0.0.0.M5 ...
[info] Resolving org.codehaus.plexus#plexus-classworlds;2.5.1 ...
[info] Resolving org.apache.maven#maven-model-builder;3.2.2 ...
[info] Resolving org.apache.maven#maven-aether-provider;3.2.2 ...
[info] Resolving org.eclipse.aether#aether-api;0.9.0.M2 ...
[info] Resolving org.eclipse.aether#aether-spi;0.9.0.M2 ...
[info] Resolving org.eclipse.aether#aether-util;0.9.0.M2 ...
[info] Resolving org.eclipse.aether#aether-impl;0.9.0.M2 ...
[info] Resolving org.apache.ant#ant;1.9.3 ...
[info] Resolving org.apache.ant#ant-launcher;1.9.3 ...
[info] Resolving org.bouncycastle#bcpg-jdk15on;1.51 ...
[info] Resolving org.bouncycastle#bcprov-jdk15on;1.51 ...
[info] Resolving com.typesafe.sbt#sbt-web;1.2.2 ...
[info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.9 ...
[info] Resolving org.webjars#webjars-locator;0.26 ...
[info] Resolving org.webjars#webjars-locator-core;0.26 ...
[info] Resolving org.slf4j#slf4j-api;1.7.7 ...
[info] Resolving org.apache.commons#commons-compress;1.9 ...
[info] Resolving com.fasterxml.jackson.core#jackson-databind;2.3.3 ...
[info] Resolving com.fasterxml.jackson.core#jackson-annotations;2.3.0 ...
[info] Resolving com.fasterxml.jackson.core#jackson-core;2.3.3 ...
[info] Resolving com.typesafe.sbt#sbt-js-engine;1.1.3 ...
[info] Resolving com.typesafe#jse_2.10;1.1.2 ...
[info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.11 ...
[info] Resolving com.typesafe.akka#akka-contrib_2.10;2.3.11 ...
[info] Resolving com.typesafe.akka#akka-remote_2.10;2.3.11 ...
[info] Resolving io.netty#netty;3.8.0.Final ...
[info] Resolving com.google.protobuf#protobuf-java;2.5.0 ...
[info] Resolving org.uncommons.maths#uncommons-maths;1.2.2a ...
[info] Resolving com.typesafe.akka#akka-cluster_2.10;2.3.11 ...
[info] Resolving com.typesafe.akka#akka-persistence-experimental_2.10;2.3.11 ...
[info] Resolving org.iq80.leveldb#leveldb;0.5 ...
[info] Resolving org.iq80.leveldb#leveldb-api;0.5 ...
[info] Resolving org.fusesource.leveldbjni#leveldbjni-all;1.7 ...
[info] Resolving org.fusesource.leveldbjni#leveldbjni;1.7 ...
[info] Resolving org.fusesource.hawtjni#hawtjni-runtime;1.8 ...
[info] Resolving org.fusesource.leveldbjni#leveldbjni-osx;1.5 ...
[info] Resolving org.fusesource.leveldbjni#leveldbjni-linux32;1.5 ...
[info] Resolving org.fusesource.leveldbjni#leveldbjni-linux64;1.5 ...
[info] Resolving org.fusesource.leveldbjni#leveldbjni-win32;1.5 ...
[info] Resolving org.fusesource.leveldbjni#leveldbjni-win64;1.5 ...
[info] Resolving io.apigee.trireme#trireme-core;0.8.5 ...
[info] Resolving io.apigee#rhino;1.7R5pre4 ...
[info] Resolving io.apigee.trireme#trireme-node10src;0.8.5 ...
[info] Resolving io.spray#spray-json_2.10;1.3.2 ...
[info] Resolving org.slf4j#slf4j-simple;1.7.12 ...
[info] Resolving org.slf4j#slf4j-api;1.7.12 ...
[info] Resolving com.typesafe#npm_2.10;1.1.1 ...
[info] Resolving org.webjars#npm;2.11.2 ...
[info] Resolving org.scala-sbt#sbt-core-next;0.1.1 ...
[info] Resolving org.scala-sbt#core-next_2.10;0.1.1 ...
[info] Resolving com.typesafe.sbt#sbt-play-enhancer;1.1.0 ...
[info] Resolving com.typesafe.play#play-enhancer;1.1.0 ...
[info] Resolving org.scala-sbt#sbt;0.13.8 ...
[info] Resolving org.scala-sbt#main;0.13.8 ...
[info] Resolving org.scala-sbt#actions;0.13.8 ...
[info] Resolving org.scala-sbt#classpath;0.13.8 ...
[info] Resolving org.scala-sbt#launcher-interface;0.13.8 ...
[info] Resolving org.scala-sbt#interface;0.13.8 ...
[info] Resolving org.scala-sbt#io;0.13.8 ...
[info] Resolving org.scala-sbt#control;0.13.8 ...
[info] Resolving org.scala-sbt#completion;0.13.8 ...
[info] Resolving org.scala-sbt#collections;0.13.8 ...
[info] Resolving jline#jline;2.11 ...
[info] Resolving org.scala-sbt#api;0.13.8 ...
[info] Resolving org.scala-sbt#compiler-integration;0.13.8 ...
[info] Resolving org.scala-sbt#incremental-compiler;0.13.8 ...
[info] Resolving org.scala-sbt#logging;0.13.8 ...
[info] Resolving org.scala-sbt#process;0.13.8 ...
[info] Resolving org.scala-sbt#relation;0.13.8 ...
[info] Resolving org.scala-sbt#compile;0.13.8 ...
[info] Resolving org.scala-sbt#classfile;0.13.8 ...
[info] Resolving org.scala-sbt#persist;0.13.8 ...
[info] Resolving org.scala-tools.sbinary#sbinary_2.10;0.4.2 ...
[info] Resolving org.scala-sbt#compiler-ivy-integration;0.13.8 ...
[info] Resolving org.scala-sbt#ivy;0.13.8 ...
[info] Resolving org.scala-sbt#cross;0.13.8 ...
[info] Resolving org.scala-sbt.ivy#ivy;2.3.0-sbt-fccfbd44c9f64523b61398a0155784dcbaeae28f ...
[info] Resolving com.jcraft#jsch;0.1.46 ...
[info] Resolving org.scala-sbt#serialization_2.10;0.1.1 ...
[info] Resolving org.scala-sbt#run;0.13.8 ...
[info] Resolving org.scala-sbt#task-system;0.13.8 ...
[info] Resolving org.scala-sbt#tasks;0.13.8 ...
[info] Resolving org.scala-sbt#tracking;0.13.8 ...
[info] Resolving org.scala-sbt#cache;0.13.8 ...
[info] Resolving org.scala-sbt#testing;0.13.8 ...
[info] Resolving org.scala-sbt#test-agent;0.13.8 ...
[info] Resolving org.scala-sbt#test-interface;1.0 ...
[info] Resolving org.scala-sbt#main-settings;0.13.8 ...
[info] Resolving org.scala-sbt#apply-macro;0.13.8 ...
[info] Resolving org.scala-sbt#command;0.13.8 ...
[info] Resolving org.scala-sbt#logic;0.13.8 ...
[info] Resolving org.scala-sbt#compiler-interface;0.13.8 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.13.8 ...
[info] Resolving org.scala-sbt#precompiled-2_9_2;0.13.8 ...
[info] Resolving org.scala-sbt#precompiled-2_9_3;0.13.8 ...
[info] Resolving org.scala-lang#jline;2.10.4 ...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to template-api-rest-java-playframework (in build file:/home/alex/projects/play-java-rest/)
[info] Setting up Play fork run ... (use Ctrl+D to cancel)
[info] 
[info] --- (Running the application, auto-reloading is enabled) ---
[info] 
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
[info] 
[info] (Server started, use Ctrl+D to stop and go back to the console...)
[info] 
[warn] application - Logger configuration in conf files is deprecated and has no effect. Use a logback configuration file instead.
[info] application - Creating Pool for datasource 'default'
[info] p.a.d.HikariCPConnectionPool - datasource [default] bound to JNDI as DefaultDS
[info] p.a.d.DefaultDBApi - Database [default] connected at jdbc:mysql://localhost:3306/play
[info] play.api.Play - Application started (Dev)
[warn] o.h.e.HibernatePersistence - HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.
[warn] o.h.e.HibernatePersistence - HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.
[warn] o.h.e.HibernatePersistence - HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.



Michael Vaughan

unread,
Feb 7, 2016, 5:30:48 PM2/7/16
to play-framework
I use remote debugging from IntelliJ instead of attempting to use the plugin.  Try these instructions to see if they work for you:
  1. Click Run > Edit Configurations from the menu in IntelliJ.
  2. Click the '+' sign in the top left of the window that opens.
  3. Select 'Remote'.
  4. Change the port if you want, by default it will be 5005.
  5. Change the name at the top if you want, it will be 'Unnamed' by default.

To start the Play app to listen on the remote debugger port, you need to add -jvm-debug 5005 to the activator run command. Or use whatever port you used in your debug configuration in IntelliJ. Issue the command below inside the terminal:

activator -jvm-debug 5005 run

After starting the app with the debug option, select Run > Debug 'Whateveryounamedyourconfig' to attach the remote debugger. You should see the debug tab open in IntelliJ and it will say it has connected to the app.

Alex Mueller

unread,
Feb 7, 2016, 8:24:13 PM2/7/16
to play-framework
I have tired running all of these steps, no luck. 

I launch the app via terminal using "activator -jvm-debug 5005 run" and it loads up fine. I can put println() statements in my java files and they print off in the terminal output. I created the remote configuration like you suggested and it appears to connect to it, "Connected to the target VM, address: 'localhost:5005', transport: 'socket'." I then access localhost:9000 and the functionality of the site works as expected, but there is still no debugging in intellij 15. It's odd. 

I can debug other applications in intellij just fine, like spring boot, node, and php apps, but not these two simple play framework applications.

Thanks again.

Alex Mueller

unread,
Feb 8, 2016, 10:46:27 AM2/8/16
to play-framework
I am now able to debug, but only when I create a new Play application via IntelliJ, not when I use Activator UI and create a project from a cloned project. I am trying to compare the two projects (the one created via IntelliJ vs the one from Activator) to see what is different or what causes debugging to not work for me. I am using the Intellij Play 2 App configuration to debug, not SBT Task or Remote config. There are a number of difference with SbtPlugins, but nothing obvious to me at this point.

Thanks for the help.

Michael Vaughan

unread,
Feb 8, 2016, 11:09:22 AM2/8/16
to play-fr...@googlegroups.com
There is nothing I can think of that would cause that behavior. When you track down what the problem is, please post back here with an update.

Thanks,
Michael

Alex Mueller

unread,
Feb 8, 2016, 8:55:01 PM2/8/16
to play-framework
This appears to be the line that does not allow me to debug inside of IntelliJ.

// This plugin adds forked run capabilities to Play projects which is needed for Activator.
addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.4.6")

When I comment out the addSbtPlugin(...), I am able to debug my Play app within IntelliJ. I do not know why yet, but this is a start.

Michael Vaughan

unread,
Feb 9, 2016, 9:12:43 AM2/9/16
to play-fr...@googlegroups.com
That makes sense as forking would essentially have the app running in a separate VM from SBT. Since the -jvm-debug option is only turning on the remote debug port for SBT, it wouldn't apply to the VM in which the app is actually running. I know that plugin is not included in Play projects by default now. I don't remember it ever being in projects by default, but it is certainly possible. Do you need that plugin for anything specific?

February 8, 2016 at 8:55 PM
This appears to be the line that does not allow me to debug inside of IntelliJ.

// This plugin adds forked run capabilities to Play projects which is needed for Activator.
addSbtPlugin("com.typesafe.play" % "sbt-fork-run-plugin" % "2.4.6")

When I comment out the addSbtPlugin(...), I am able to debug my Play app within IntelliJ. I do not know why yet, but this is a start.

On Monday, February 8, 2016 at 9:09:22 AM UTC-7, Michael Vaughan wrote:
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/95649063-5cda-4b61-bc13-515b033369fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
February 8, 2016 at 11:09 AM
There is nothing I can think of that would cause that behavior. When you track down what the problem is, please post back here with an update.

Thanks,
Michael
February 8, 2016 at 10:46 AM
I am now able to debug, but only when I create a new Play application via IntelliJ, not when I use Activator UI and create a project from a cloned project. I am trying to compare the two projects (the one created via IntelliJ vs the one from Activator) to see what is different or what causes debugging to not work for me. I am using the Intellij Play 2 App configuration to debug, not SBT Task or Remote config. There are a number of difference with SbtPlugins, but nothing obvious to me at this point.

Thanks for the help.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/316ade2f-ac5e-4771-b132-2516f59cc8c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
February 7, 2016 at 8:24 PM
I have tired running all of these steps, no luck. 

I launch the app via terminal using "activator -jvm-debug 5005 run" and it loads up fine. I can put println() statements in my java files and they print off in the terminal output. I created the remote configuration like you suggested and it appears to connect to it, "Connected to the target VM, address: 'localhost:5005', transport: 'socket'." I then access localhost:9000 and the functionality of the site works as expected, but there is still no debugging in intellij 15. It's odd. 

I can debug other applications in intellij just fine, like spring boot, node, and php apps, but not these two simple play framework applications.

Thanks again.

On Sunday, February 7, 2016 at 3:30:48 PM UTC-7, Michael Vaughan wrote:
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/4ff33722-92bd-4689-b310-15f55be34b27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
February 7, 2016 at 5:30 PM
I use remote debugging from IntelliJ instead of attempting to use the plugin.  Try these instructions to see if they work for you:
  1. Click Run > Edit Configurations from the menu in IntelliJ.
  2. Click the '+' sign in the top left of the window that opens.
  3. Select 'Remote'.
  4. Change the port if you want, by default it will be 5005.
  5. Change the name at the top if you want, it will be 'Unnamed' by default.

To start the Play app to listen on the remote debugger port, you need to add -jvm-debug 5005 to the activator run command. Or use whatever port you used in your debug configuration in IntelliJ. Issue the command below inside the terminal:

activator -jvm-debug 5005 run

After starting the app with the debug option, select Run > Debug 'Whateveryounamedyourconfig' to attach the remote debugger. You should see the debug tab open in IntelliJ and it will say it has connected to the app.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/9d1bbb93-9bbc-4a42-accb-9d5bacbced96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--


MICHAEL VAUGHAN / Lead Software Architect
c: 864.280.0441 | e: mike.v...@qonceptual.com
a: 871 Lowcountry Blvd., Suite 100, Mt. Pleasant, SC 29464


Alex Mueller

unread,
Feb 9, 2016, 10:38:34 AM2/9/16
to play-framework
I do not know that I need that plugin at all, as I am new to Play. I am doing some R&D on Play to see how dev-friendly it will be for a small team to use as our application server for desktop and mobile clients. Thanks for your help.

Christian Schmitt

unread,
Feb 23, 2016, 2:27:29 PM2/23/16
to play-framework
actually you don't need the project you could create a sbt task and use the debug there.

Just add a new sbt task put in a name of "run" and Tasks should be "run", too. than you could start debugging even on a activator created project.
Reply all
Reply to author
Forward
0 new messages