Bugged

Aug. 11th, 2010 11:30 pm
billroper: (Default)
[personal profile] billroper
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*

Date: 2010-08-12 04:36 am (UTC)
poltr1: (polyfusion)
From: [personal profile] poltr1
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.

Date: 2010-08-12 09:22 am (UTC)
madfilkentist: My cat Florestan (gray shorthair) (hex)
From: [personal profile] madfilkentist
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.

Date: 2010-08-12 01:11 pm (UTC)
From: [identity profile] kevinnickerson.livejournal.com
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.

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

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

Profile

billroper: (Default)
billroper

May 2025

S M T W T F S
     1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 29th, 2025 09:58 pm
Powered by Dreamwidth Studios