![]() I had found this to be so time consuming in the past, that I never bothered during development. Previously, if you wanted a single deployment unit, you would need to use the Maven Exec plugin to launch Payara during the build and output an Uber JAR. One thing that I was very keen to demonstrate – aside from some nice new features in Java EE 8 – was how quick and easy it is to develop and build MicroServices packaged as Uber JARs with our new Payara Micro Maven plugin. Way back at the start of October, I was feeling the familiar sensation of panic and dread that only happens right before I need to give a presentation that includes a demo! In the end, there were major problems with the AV setup in the room I was allocated, so even arriving as early I could to set up didn’t give the techs enough time to hook up my laptop successfully. Then if you launch the server in JRebel Debug (icon looks like a bug with a little JR in the corner) changes to static assets are picked up as you make them and changes to classes are picked up as you compile them (shift-command-f9 for an incremental compile of the selected tab).Just recently, I have had to admit being wrong. If you use JRebel, you can add a rebel.xml to src/main/resources that looks similar to: Do a single SBT package and then launch the server in debug mode within Intellij and your breakpoints should work. In the deployment tab make sure that it references /path_to_your_project/webapp. Instead of setting it up for remote debugging and connecting to SBT, set it up as a local Jetty server. I use a different method when debugging with Intellij that works well for me. Would posting complete source code help solving the problem? Could that be the source of problems?Īnother thing to mention, I downloaded sample Lift projects from the official site, and there debugging works! It seems that something is totally broken in my own project. I'm not sure if the warning about "NO JSP Support for /" is important. ![]() Started Total time: 7 s, completed 19:57:12 NO JSP Support for /, did not find .JspServlet C:\Users\Roman\Downloads\LiftHelloWorld\src\main\scala\Chat.scala:26: non-variable type argument String in type pattern Vector is unchecked since it is eliminated by erasure Compiling 4 Scala sources to C:\Users\Roman\Downloads\LiftHelloWorld\target\scala-2.10\classes. This is the output of sbt console when I do container:start: No breakpoints are hit, even though I attach my remote debugging session before calling container:start. ![]() I'm on Windows 8.1, and here's code for my sbt.bat: I create default "remote" configuration for debugging in IDEA. Maybe I'm debugging just the SBT session? What could that mean? Another interesting symptom is that I can already successfully start remote debugging when I launch just SBT, but don't call the "container:start" command there. I put breakpoints to every method in the Chat.scala, ChatIn.scala and ChatServer.scala, but none of them appears as active (there's no check-mark inside the red circle). The problem is, my breakpoints are not hit. I can run the Jetty container from SBT, and I even can connect my remote debug configuration to the SBT session, because I see Connected to the target VM, address: 'localhost:5005', transport: 'socket' message in the IDEA's debugging output. What I've achieved so far: I have my Lift app running in the browser, and following instructions from !topic/liftweb/ixWOc9H9aJ0 I created a "remote" debugging configuration in IDEA. I encounter one issue which I can't resolve myself, could you kindly guide me in the right direction? I thought debugging it would help me find the problem quickly, however setting the debugging up itself is quite time-consuming, and I'm not there yet. Somewhere, that's why it doesn't work as expected (chat message doesn'tĪppear in the list on submit, but text disappear from the text box). I typed it by hand, so I've probably made a mistake The code of the app is taken from "Simply Lift" book's first chapter, I'm just staring with Lift, and trying to debug a very simple application, which doesn't work for some unknown reason.
0 Comments
Leave a Reply. |