Skip to content

Debugging in IntelliJ

Jan Christopher Vogt edited this page Mar 11, 2017 · 1 revision

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:

image

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/.

image

Mark the target directories inside of them as excluded.

image

Start a CBT task in debug mode

image

Create a remote debug configuration in IntelliJ

image

image

Give it a name

image

The settings should all be fine. Just click OK.

image

Click the debug icon

image

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.

image

Clone this wiki locally