No problems debugging my Play webapp with eclipse debugger, but have been unsuccessful in getting the debugger to engage during unit tests. I have tried the suggestions listed here and here but when I connect my debugger through Eclipse, my break points are still getting ignored.
My webapp consists of two subprojects and I have added the setting:
Keys.fork in (Test) := false
to all three Build.scala files in the play.Project(...).settings section: both of my subprojects as well as the one the one at the top level. I then do the following:
- from the play console, run play clean
- from the play console, run play compile
- from the play console, run play debug
- from Eclipse, run debug configuration looking at port 9999 (same one I use to debug webapp successfully)
- at the play $ prompt, run test
Are there additional steps to take when debugging tests that part of a subproject or if using fakeApplication (I'm doing model testing with an in-memory db)?