-
Notifications
You must be signed in to change notification settings - Fork 60
Debugging in IntelliJ
You can debug your CBT builds and CBT itself in IntelliJ.
In order to do that add cbt as well as your project's build directories as two modules to your IntelliJ project:
Make your build module depend on the cbt module.
Inside the modules mark the directories with scala/java files as source directories. For cbt itself that's compatibility/
, nailgun_launcher/
, stage1/
, stage2/
and as needed anything under libraries/
or plugins/
.
Mark the target directories inside of them as excluded.
Start a CBT task in debug mode
Create a remote debug configuration in IntelliJ
Give it a name
The settings should all be fine. Just click OK.
Click the debug icon
If you set a break point in a file CBT has to go through (and marked the file's directory as a source directory) you should stop at the break point. You can also simply hit pause and see where CBT is right now.