java - Breakpoint at exception in Eclipse - how to examine Exception object? -


i feel i'm missing simple here. have eclipse set break on exceptions. so, let's breaks on assertationfailedexception. debug window show thread suspended , has following data:

thread [thread-1] (suspended (exception assertionfailedexception))      contactmanager.addcontact(string) line: 93       contactmanager$contactdatacallback.dispatch(string, element, clientconnector) line: 118      packethandler.handle(fractuspacket) line: 173        serverconnection.syncprocess(fractusmessage) line: 122       serverconnection.run() line: 248         thread.run() line: 636

however, text i'm looking for, such as: "getter called outside realm of observable org.eclipse.core.databinding.observable.set.writableset@4b7361e2", not available until step through exception (thus propagating way stack) outputs type of exception, text (which part want) , stack trace.

how can examine "assertationfailedexception" (or other exception) in order message exception constructed? of course i'm in debug perspective.

there option in eclipse preferences allows inspecting of thrown exception:

check java -> debug -> open popup when suspended on exception

with option there popup allowing inspection of exception.

strange option not checked default useful !


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -