chrisvenus: (Default)
[personal profile] chrisvenus
I 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. :(

(no subject)

Date: 2005-10-12 01:25 pm (UTC)
From: [identity profile] bateleur.livejournal.com
Do you have a way to add trace output of any kind ?

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 05:28 pm (UTC)
From: [identity profile] ao-lai.livejournal.com
Heh, once again I've missed the entire effective posting time for something... But I too was confidently about to advocate extensive amounts of tracing. Sometimes MessageBoxes can help if you need to synchronise processes in a coordinated manner - But I should point out that I know almost nothing about C#.

Still... Tracing is good. I recommend it.

Profile

chrisvenus: (Default)
chrisvenus

May 2011

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags