Command line debugging with SBT

Hey guys,
I’m trying to move from an IDE to using Vim with metals instead. The only thing lacking is debugging. So the question: how do you debug something running in SBT (Lagom for instance) from the command line?
Thanks.