java - Way to know what was the last line executed before entering a catch block with Intellij? -


a recurring issue when debugging i'm going through line line in code , suddenly, out of nowhere, jump catch block. going through many lines can't remember line caused catch-block executed.

does intellij provide kind of facility allows me check last line executed in given try-block?

ps: if i'm dealing pure function, things not terrible. can drop frame , go again through code, paying particular care see 1 last line executed try-block before getting catch-block. tedious if method long enough..

thanks

sometimes had requirement well. there 2 options can try:

plain intellij without installing plugin

when stop in catch block, use expression evaluation (alt-f8) , execute e (or ex whatever exception var named) .printstacktrace(), in console see stacktrace, pointed out line caused exception.

in way, can know line number stacktrace, if want go there , check problem, have drop frame/re-start debug.

install chronon plugin in intellij

this plugin supports step forward/backwards, method call history functions etc. , if exception occurred, can locate line caused exception well. can alt-f6 go line, check going on.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -