tascalate-async-await icon indicating copy to clipboard operation
tascalate-async-await copied to clipboard

how can i debug the method which annotated with @async

Open wzhang12 opened this issue 7 years ago • 3 comments

when i use intellij idea run the examples provided, it seems the breakpoint cannot be hit

wzhang12 avatar Jun 21 '18 07:06 wzhang12

Hello,

The issue is acknowledge, but the fix is pending to the second release. The reason behinds the behavior observed is that internally async/generator methods are transformed into anonymous internal class, but debug information (file/line-number) is not preserved. Will fix it after I released a first future-complete build.

Regards, Valery

vsilaev avatar Jun 24 '18 09:06 vsilaev

Hello, has this issue been fixed? Are we able to debug async methods?

digiovinazzo avatar May 23 '22 15:05 digiovinazzo

Unfortunately, this task is get out of my radar (

Regardless of my brave release numbering, the project still has issues with scheduler resolvers (already addressed, to be released shortly), lack of documentation and missing Gradle plugin (even orthodoxic me use Gradle more often than Maven nowadays). These are what to be addressed first.

What is implemented currently for debugging is a blind copying of source-file-name/line-number from the source file to the generated ones (in bytecode, i.e. ".class" form). I saw that it worked in some my tests, though, no deep analysis/impl. was performed for the issue.

My apologizes with a delayed fix, but the issue is still "alive"

vsilaev avatar May 23 '22 15:05 vsilaev