vsilaev / tascalate-async-await

Async / Await asynchronous programming model for Java versions 1.8 - 23; similar to the functionality available in C# 5. The implementation is based on continuations for Java (see my other projects).
BSD 2-Clause "Simplified" License
104 stars 12 forks source link

how can i debug the method which annotated with @async #2

Open wzhang12 opened 6 years ago

wzhang12 commented 6 years ago

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

vsilaev commented 6 years ago

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

digiovinazzo commented 2 years ago

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

vsilaev commented 2 years ago

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"