henrikerola / sbt-vaadin-plugin

Vaadin Plugin for sbt
9 stars 7 forks source link

Not able to debug #10

Open thehappycoder opened 10 years ago

thehappycoder commented 10 years ago

I don't understand how to debug my application.

build.sbt has this:

// This makes possible to attach a remote debugger when development mode is started from the command line
javaOptions in vaadinDevMode ++= Seq("-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005")
> vaadinDevMode
[warn] No widgetsets defined or found. Nothing to to.
[success] Total time: 0 s, completed Aug 2, 2014 10:11:10 AM
> container:start
[warn] No widgetsets defined or found. Nothing to to.
[info] Compiling theme 'menu'
2014-08-02 10:11:30.275:INFO::pool-14-thread-5: Logging initialized @238394ms
2014-08-02 10:11:30.446:INFO:oejs.Server:pool-14-thread-5: jetty-9.1.3.v20140225
2014-08-02 10:11:31.946:INFO:oeja.AnnotationConfiguration:pool-14-thread-5: Scanned 0 container path jars, 26 WEB-INF/lib jars, 1 WEB-INF/classes dirs in 1330ms for context o.e.j.w.WebAppContext@32ecf100{/,[file:/Users/anton/thehappycoders/menu/src/main/webapp/, file:/Users/anton/thehappycoders/menu/target/scala-2.10/resource_managed/main/webapp/],STARTING}
2014-08-02 10:11:31.953:INFO:oejw.StandardDescriptorProcessor:pool-14-thread-5: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
2014-08-02 10:11:31.991:INFO:oejsh.ContextHandler:pool-14-thread-5: Started o.e.j.w.WebAppContext@32ecf100{/,[file:/Users/anton/thehappycoders/menu/src/main/webapp/, file:/Users/anton/thehappycoders/menu/target/scala-2.10/resource_managed/main/webapp/],AVAILABLE}
2014-08-02 10:11:32.003:INFO:oejs.ServerConnector:pool-14-thread-5: Started ServerConnector@5396bee6{HTTP/1.1}{0.0.0.0:8080}
2014-08-02 10:11:32.004:INFO:oejs.Server:pool-14-thread-5: Started @240124ms

Port 5005 is closed

plugins.sbt

// Vaadin SBT plugin
resolvers += "sbt-vaadin-plugin repo" at "http://henrikerola.github.io/repository/releases"

// IDE plugin and others
resolvers += Classpaths.typesafeReleases

addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.9.0")

addSbtPlugin("org.vaadin.sbt" % "sbt-vaadin-plugin" % "1.0.0")

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
henrikerola commented 10 years ago

It says it doesn't find any widgetsets. Is regular widgetset compilation working?

thehappycoder commented 10 years ago

The app is working, if you mean that. I use only standard widgetset.

thehappycoder commented 10 years ago

I tried to upgade to xsbt-web-plugin" % "1.0.0-M4" (it's been said that it supports forking container processes) but seems that sbt-vaadin-plugin does not support it. I had hopes for using -Xdebug for forked process.