Extension point for locating sources from a stack trace?

I work on tooling that compiles C and Fortran files to JVM class files. I have managed to implement breakpoints and debugging, but clicking on a file like "devPS.c" from a stack trace in the console still opens the decompiled class file.

Is there an extension point for locating sources from stack traces?

1 comment
Comment actions Permalink

Hi Alex,

have you implemented your own psi for C/Fortran files? if so, that psi should implement `com.intellij.psi.PsiElement#getNavigationElement` to map compiled class to the corresponding source.

If you get `ClsClass`, you may try `com.intellij.psi.impl.compiled.ClsCustomNavigationPolicy` instead

 

Anna

0

Please sign in to leave a comment.