Search code examples
scaladebuggingakkaactor

Debugging a specefic akka actor "line-by-line" in IDE?


Is there a way to debug an akka actor line-by-line in an IDE (Jetbrains IDEA)?
I use logging for see life-cycles and ... but can I have some other standard tools (e.g watch, evaluate a variable, ...) for one actor or object or function in IDE?


Solution

  • Just start SBT in debug mode by exporting the options:

    SBT_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"

    And setup a remote debugging session in idea and you can debug with breakpoints, watches e.t.c. as normal.