Intellij IDEA 调试器故障:“此”不可用

Sun*_*har 5 debugging intellij-idea

最近,我开始在调试器中遇到上述问题,调试器无法找到“this”,即 Java 中的当前对象实例(我正在开发 Java 项目)。虽然,我在“ajc$this”下看到了类中变量的初始值,但是......我不能使用评估,也不能在实际修改这些变量后修改“ajc$this”的值。

其他问题显示:

((InputBuffer)((CoyoteInputStream)input.input).ib).lock = 找不到局部变量“输入”

((UnauthorizedException)ex).code = ((UnauthorizedException)ex).code

((Response)((Request)((RequestFacade)request).request).response).request = '此' 不可用。

请看一下这个,调试器非常重要。

我找到的资源:-

Android Studio 的调试窗口中显示“‘this’不可用”

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206183909--this-is-not-available-in-debugger-variables-window

在此输入图像描述

OHY*_*OHY 1

就我而言,IntelliJ 将默认的 java 编译器设置为 Ajc。将其更改为 Javac 后,调试器按预期工作(设置 -> 构建、执行、部署 -> 编译器 -> Java 编译器 -> 使用编译器:Javac)