lift-cookbook
                                
                                 lift-cookbook copied to clipboard
                                
                                    lift-cookbook copied to clipboard
                            
                            
                            
                        Debugging with Intellij
I had to do this for the first time last week. What I did was....
- Modify my SBT script to enable all the JVM debugging flags:
$ cat `which sbt`  


WITH_DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
java $WITH_DEBUG -Drun.mode=development -XX:MaxPermSize=556m -Xmx712M -Xss2M $WITH_REBEL -XX:+CMSClassUnloadingEnabled -jar `dirname $0`/sbt-launch.jar "$@"
(ignore with WITH_REBEL part)
- Start SBT and container:start as normal.
- In IntelliJ, with my Lift project open, Selected Run> Debug..., selected Edit Configurations, selected the + icon, selected Remote, gave it a name and pressed Debug.
I thought I'd end up just debugging SBT :-) but I could set breakpoints in my Lift app and the debugging jumped up when I reached that point in the browser.
