billroper: (Default)
billroper ([personal profile] billroper) wrote2010-08-11 11:30 pm
Entry tags:

Bugged

I'm fixing up some serialization code that makes heavy use of C++ templates. Unfortunately, there's something not quite right with what's happening so I'm having to trace through it with the debugger to figure out what's going on.

This makes it very annoying when I tell the debugger to single step and instead it goes flying off somewhere at random, usually into the exception throw that I'm trying to find out the cause of. I can work around this by judicious use of breakpoints, but I really hate it when the debugger decides to misbehave.

*sigh*
poltr1: (polyfusion)

[personal profile] poltr1 2010-08-12 04:36 am (UTC)(link)
I feel your pain. I was running into the same problem stepping through Perl code on Eclipse using the EPIC plug-in and whatever module I loaded to view global variables. I couldn't see the variables, or it would go off into never-never-land.
madfilkentist: My cat Florestan (gray shorthair) (hex)

[personal profile] madfilkentist 2010-08-12 09:22 am (UTC)(link)
Sounds like the Heisenberg Uncertainty Principle of debugging. The more precisely you know what the state of your variables is, the less precisely you can know where you are.

[identity profile] kevinnickerson.livejournal.com 2010-08-12 01:11 pm (UTC)(link)
Happily, our exception throws (at least in debug builds) show the call stack. Not sure how, they were setup by someone else before I got moved from 'real programming' to C++/.NET.

Overall, I'm not a fan of the throw statement, I think it's overused. That's Religion though.

[identity profile] filkermanque.livejournal.com 2010-08-12 06:17 pm (UTC)(link)
Is anyone masking off interrupts where the debugger runs away?

[identity profile] filkermanque.livejournal.com 2010-08-12 01:37 pm (UTC)(link)
As a debugger developer, I like to blame the compiler first. :-)