Skip to content

Debugging DIARC

Evan Krause edited this page Nov 18, 2024 · 3 revisions

Setting Breakpoints

To run your DIARC instance through a debugger, you just need to start your DIARC configuration (or component) with the --debug-jvm flag.

./gradlew launch -Pmain=edu.tufts.hrilab.config.MyDiarcConfig --debug-jvm

This will pause the JVM until a debugger is attached. From your IDE, choose Attach to Process, and select the corresponding Java process.

You can now set breakpoints in any code that is running in your DIARC Configuration.

Logging Framework

Another helpful tool when debugging a large system like DIARC is the logging framework. This can be used to change the output level (info, debug, trace, etc.) for classes and packages. See the Logging page for details on configuring the logging levels and writing new code that uses this logging framework.

Clone this wiki locally