I didn't add a comment in this Debug Scala Post because in my opinion it was another setup.
I had a similiar problem with Maven instead of SBT. I used Maven because the complete Java project was built upon it and I only wanted to debug my Gatling Scala code. However I'm not able to debug the code with the IDE.
Here's what I tried:
- Clean the built
mvn clean install
- Invalidate caches in IDEA with the menu button
- Use
println
to see whether the code is reached - worked - Redeploy the project on the Glassfish
- Delete the generated files in the Glassfish and redeploy
This is my current setup:
- Maven 3.3.9
- Glassfish Payara 4 build 163
- IDEA 2016.3.4. built on January 31 2017
- JDK 1.8.0_51
- Gatling 2.2.3
- Scala-Maven-Plug 3.2.2
My solution is as follows.