Start Tomcat with
catalina jpda start. It will start Tomcat so that a remote debugger can be connected to port 8000.
Set up your debugger to run with the following options when the JVM is started:
In IDEA, this done in the Debug Configurations by setting up the "Remote" configuration.