Android Studio 4.2.2 – Why debbuger doesn’t evaluate parameter in a inner funcion?

Solution for Android Studio 4.2.2 – Why debbuger doesn’t evaluate parameter in a inner funcion?
is Given Below:

Android Studio 4.2.2 evaluates a local and global variable, but doesn’t evaluate parameter funcion when is inside a inner function.

Until the previous version this worked perfectly.

fun a(p:param) {
fun b(){
var v = p+1 // Here
}
}

Suppose that one try to evaluate the parameter p in the line with comment
// Here with Alt F8

The message in evaluate window is

Cannot find the local variable 'p' with type

This hurts a lot because it forces you to replicate the parameter as a local variable in each routine to be visible in the debugger.

var p = p

Has anyone noticed this? Is there any workaround?

Notice that Variables windows display a parameter with $ prefix, but it also doesn’t work in evaluate window.

I’ve posted this issue in JetBrains.

enter image description here