Cleaning up after stopping debugging?

I have a scenario where I'm debugging methods that create database transactions. If I stop the debugging session (by clicking the stop button), the transaction is left open, taking database resources. Does IDEA just kill the process when stop is pressed or is there a way to cleanup before the debug session is shutdown?


Please sign in to leave a comment.