Debugging Lagom online-auction in IntelliJ


(Kaarthiknva) #1

Help needed on how to run online-auction java project in debug mode in IntelliJ?


(Ignasi Marimon-Clos) #2

Hi kaarthiknva,

you should start sbt in debug mode (sbt -jvm-debug 5005) and then you can use IntelliJ’s deault features to connect to remote processes for debugging.

Cheers,


(Kaarthiknva) #3

Hi Ignasi,

Thanks and this worked.


(dheeraj) #4

Hi All,

@Thanks Ignasi. Yes it worked.

Just to be in detail, we need to do following steps:
First you need to create new Run/Debug configuration.
Goto Run -> Edit configuration
Click on plus icon -> Select remote
Enter the name you like
Ensure address is assigned to port 5005 (address=5005)
Select the module name you wanted to be in debug mode over “Search sources using module’s classpath”
Hit apply and ok
Select the newly created Run/Debug configuration on left right corner of IDE
Open termanal and hit
sbt -jvm-debug 5005 runAll
On IDE start newly created Run/Debug configuration as debug
Now you should able see breakpoints.

Other References
lagom-debugger-intellij
Remote debugging using IntelliJ

Regards,
Dheeraj


(Xin Meng) #5

I am using the Intellj Run Configuration to add sbt task runAll to debug.

remember two things:

  1. increase the circuit-breaker timeout lagom.circuit-breaker.default.call-timeout = 10m
  2. increase the actor timeout