Debugging with Debug mode
Use Debug mode for a bug you can reproduce by running a test, an application, or an existing IDE run configuration.
How to confirm the cause and fix the bug
- Open the Explyt tool window (Shift-Shift > Explyt).
- Click
+to create a new chat. - Select
Debugin the mode selector. - Provide the failing test, an existing IDE run configuration, a stack trace, or exact reproduction steps.
- Ask the agent to confirm the cause under the debugger first: set breakpoints, check variable values and the call stack.
- Once the cause is confirmed, ask for a minimal fix.
- Re-run the original scenario, then the related tests.
- Review the changes in Agent Changes.
Example request:
Reproduce the error in Debug mode. Before changing any code, confirm the cause:
set breakpoints, check variable values and the call stack. Once confirmed, apply
a minimal fix, then re-run the original scenario and the related tests.
What to check
- The agent reproduced the original failure in the scenario you specified.
- The cause is confirmed by breakpoints, variable values, and the call stack, not just by a guess based on the code or the log.
- The original scenario passes after the fix.
- The related tests pass on a re-run.
Limitations
A single debugger run confirms the fix only for that specific scenario. It does not replace the related tests and other checks. If the bug cannot be reproduced, collect additional steps, input data, or a stack trace.
For a complete bug-fixing walkthrough, see the Fix a bug guide.