JetBrains / capture-points

IDEA debugger sample Capture Points
Apache License 2.0
35 stars 14 forks source link

RxJava 3, reactive-streams #10

Open idontusenumbers opened 3 years ago

idontusenumbers commented 3 years ago

Any chance we could get a set of capture points for RxJava3?

I've tried a few myself but I can't figure it out.

idontusenumbers commented 3 years ago

I just noticed the RxJava plugin hooks; this might work with the jetbrains async schedule/execute annotations; I'll give this a shot.

gorrus commented 3 years ago

To me it also seems that plugin hooks + schedule/execute annotations approach should work better than capture points setup, have you tried that?

idontusenumbers commented 3 years ago

I tried the plugin hooks but they didn't seem to work.

gorrus commented 3 years ago

Yep, unfortunately the hook at the insertion point is executed before the actual singleSupplier execution, so when we're inside the singleSupplier execution we can not get the async stack. You'll have to wait for https://youtrack.jetbrains.com/issue/IDEA-186404 and then use external annotations to setup async stack traces in any library. Until then you can use manually set up capture points. Sorry for inconvenience.