Grrr! Argh!
Oct. 12th, 2005 02:01 pmI just have a need to go grra and argh a bit. Nothing serious, just a bug of doom that just won't seem to let me catch it.
I've got myself an infinite loop going on and it is due to something unexpected happening (which you probably could ahve guessed). I've spent about 3 hours trying to work out what the hell is going on so far but am facing several problems. The processing involves lots of event handlers (databinding ones) which means that running through things step by step is harder than it should be. The process involves an instance of an object being added as a child to another instance of that object which means its proving a bugger to break in the right place and keep track of what object is executing code at any given time. Visual Studio crashed and lost all the breakpoints that I spent ages working out where they wanted to go and lost all the variables I had worked out might be the cause and I was watching.
Generally I'm getting very stressed and annoyed with it. Doesn't help that I have started feeling not too good again (cough getting worse and feeling very hot though it might just be hot in here). Bleugh. Muchness of suckage. I hate bugs of doom.
Oh, if anybody has experience of debugging C# (or other) with VS.NET then feel free to pass on any pearls of wisdom in the forms of hints or tips. I can't help but feel this should be easier and that I'm missing something. :(
I've got myself an infinite loop going on and it is due to something unexpected happening (which you probably could ahve guessed). I've spent about 3 hours trying to work out what the hell is going on so far but am facing several problems. The processing involves lots of event handlers (databinding ones) which means that running through things step by step is harder than it should be. The process involves an instance of an object being added as a child to another instance of that object which means its proving a bugger to break in the right place and keep track of what object is executing code at any given time. Visual Studio crashed and lost all the breakpoints that I spent ages working out where they wanted to go and lost all the variables I had worked out might be the cause and I was watching.
Generally I'm getting very stressed and annoyed with it. Doesn't help that I have started feeling not too good again (cough getting worse and feeling very hot though it might just be hot in here). Bleugh. Muchness of suckage. I hate bugs of doom.
Oh, if anybody has experience of debugging C# (or other) with VS.NET then feel free to pass on any pearls of wisdom in the forms of hints or tips. I can't help but feel this should be easier and that I'm missing something. :(
(no subject)
Date: 2005-10-12 01:25 pm (UTC)Debuggers are a fine thing, but over-reliance on them leads to confusion for bugs like this.
Best approach is probably to send huge amounts of detailed tracing to a file and then analyze the tracing at the point where the unwanted looping begins.
(no subject)
Date: 2005-10-12 02:24 pm (UTC)And I'm not sure if pumping out trace information would have been much more helpful really since I'd need to work out what to output. I have a feeling I just worked out what's going wrong. Its to do with the silly way this was originally programmed. If you want to embed a report inside a report do you add a report object as a child of a report? No, you go through and change loads of data in it and then just call the rendering functions a second time before then resuming where you left off. This didn't even work properly so I made it embed things but It hink that some stuff is being put in the querystring and overriding the settings for *all* of the reports and so barfing. But not all the time which is the really weird thing now I think about it...
(no subject)
Date: 2005-10-12 02:57 pm (UTC)(no subject)
Date: 2005-10-12 05:28 pm (UTC)Still... Tracing is good. I recommend it.