Unfortunately, this is the current limitation of the SourceMap format. With the regular function, it works fine just because all the variables inside the regular functions are compiled into JS variables with the same name, but with the suspend function, some of the variables are translated into StateMachine's fields.
The situation with the debuggability of suspend functions should be much better when the ticket (https://youtrack.jetbrains.com/issue/KT-63038) arrives in the next version of the compiler.
Artem Kobzar
11/16/2023, 6:05 PM
I'm working to bring it in 2.0 version
👍 4
gratitude thank you 2
Artem Kobzar
11/16/2023, 6:06 PM
For now, you could try to inspect such variables by
this
object fields
e
Edoardo Luppi
11/16/2023, 9:46 PM
Do you aim at supporting this for all module systems or only for ES?