PSI debugging and ProcessCanceledException

I'm writing PSI-intensive code (code inspections, exactly) and when I'm
debugging, I frequently need to start over because all PSI calls start
throwing ProcessCanceledException. I assume this is some trick to stop
inspection process on old code.

I wonder if anyone has found ways around this, for debugging purposes.
Or, at least, if anyone has found what triggers this exception. (I've
noticed it happens frequently when I step to next line too quickly, but
otherwise I don't see a pattern.)

I wonder if JetBrains could add an option that ProcessCanceledException
is not thrown, or the timeout (or whatever triggers it) is set to be
longer, during DevKit runs.

Please sign in to leave a comment.