C# debugger bug?

  • Thread starter Thread starter Etienne Charland
  • Start date Start date
E

Etienne Charland

I have Visual Studio.NET 2003. When I run a C# program, go in debugging
mode, select an expression and press Shift+F9, the QuickWatch window shows
up. However, half of the time, it says "error: '...' doesn't exist." For
example, I just ran a program, paused where an exception occured and made a
QuickWatch on this:
ad.Update(table) error: 'ad.Update' does not exist
(where ad is a SqlDataAdapter)

this kind of debugging works very well in VB, I'm only having trouble in C#.
Is there anythiing I can do?

Thanks!

Etienne
 
I don't know about you, but I sure wouldn't go around evaluating methods
like "Update" when I'm debugging. If you want to examine the return value,
assign it to some variable. But evaluating some methods multiple times isn't
really good for them. I've noticed that not all motheds in classes are
available in the debugger. This might be a bug, or it might be a matter of
design. I don't know.

Chris
 
Back
Top