-
Notifications
You must be signed in to change notification settings - Fork 3
Debugging DIARC
Evan Krause edited this page Nov 18, 2024
·
3 revisions
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-jvmThis 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.
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.