Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA Debugger Malfunction: 'this' is not available

Recently, I have started getting the above issue in the debugger, where the debugger is not able to find the the 'this' i.e. the current object instance in Java (I am working on Java Project). Although, I am see the initial value of variables in the class under 'ajc$this' but... I can't use evaluate , nor the value of the 'ajc$this' is modified after actual modification of those variables.

Other issues show :

((InputBuffer)((CoyoteInputStream)input.input).ib).lock = Cannot find local variable 'input'

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

((Response)((Request)((RequestFacade)request).request).response).request = 'this' is not available.

Kindly have a look at this, Debugger is very important.

Resources that I found :-

"'this' is not available" in debug windows of Android Studio

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

enter image description here

like image 653
Sunny Shekhar Avatar asked Nov 15 '22 16:11

Sunny Shekhar


1 Answers

In my case, IntelliJ set the default java compiler to Ajc. After changing it to Javac the debugger worked as expected (Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler -> Use compiler: Javac)

like image 126
OHY Avatar answered Jun 03 '23 00:06

OHY