"Debug information is inconsistent" when hitting breakpoint in code under test

已回答

When I try to step through a particular method in my project, all local variables are showing “Debug information is inconsistent” instead of their actual value. This even happens when I try to evaluate expressions. Everything works fine everywhere else in my code, just not for this particular method.

I haven't been able to find documentation for this message anywhere online. I also can't provide a minimal example as I haven't been able to repro and I'm not able to share my code. If someone could just tell me what this message means that would probably be enough for me to figure it out.

0

It's Java, JDK 20.0.2

0

The exception is thrown by the Java debugger itself, not IntelliJ IDEA. Please see the JavaDoc for https://docs.oracle.com/javase/8/docs/jdk/api/jpda/jdi/com/sun/jdi/InconsistentDebugInfoException.html.

0

Ah, thank you for that. Do you know if there's any way I could get more info from the debugger? This is an extremely complex flow.

0

Try asking at https://stackoverflow.com/ or use the command line jdb in case it can provide more information.

0

请先登录再写评论。