eclipse refuses to disable break-on-exception

49 views
Skip to first unread message

gadget

unread,
Dec 13, 2012, 8:22:15 PM12/13/12
to andro...@googlegroups.com
Hello everyone, I wonder if anyone has had a similar issue?

My problem is this - I run a socket thread (pthread, attached to jvm) that listens on a java socket with a timeout. If no message arrives, a socket timeout exception is thrown, which I check for immediately following the Receive call. Here is the code:

            localEnv->CallVoidMethod(mjoEndpointSocket, jmidReceive, joPacket);

            // -- check timeout exception, reset it
            if ( localEnv->ExceptionCheck() ) {
                localEnv->ExceptionClear();
            }

However Eclipse (Indigo) keeps breaking on this exception. I've tried disabling breaking on caugh/uncaught exceptions via the 'J!' button in the debugger view, but to no effect.

gadget

unread,
Dec 13, 2012, 9:46:36 PM12/13/12
to andro...@googlegroups.com
here's my hacky workaround:

in the function of interest insert:

    android.os.Debug.waitForDebugger();

and add a breakpoint on the next line of code.
Now run as android application (not debug as android application)
and it should break only on the desired location
Reply all
Reply to author
Forward
0 new messages