Groups | Blog | Home
all groups > visual studio .net ide > march 2005 >

visual studio .net ide : Raise exception in command window



Emil Astrom
3/22/2005 12:26:37 AM
Hi!

Is there a way to raise a given exception during debugging in VS 2003, for
example by typing a command the command window? This would be very useful
but I have not yet found a way to do it.

Cheers,

Emil

gyurisc
3/23/2005 8:40:23 PM
What if you create a method what throws the exception and call that method
from the command window?
I am wondering how thos would be userfull, can you eexplain it to me,
please?

Cris
[quoted text, click to view]

Emil Astrom
3/24/2005 10:43:14 PM
It would be very useful for debugging and testing different error conditions
without explicitly writing erroneous code. And trying not to forget removing
it ;-)

Thanks for the idea. I'll try it!

Regards,

Emil

[quoted text, click to view]

AddThis Social Bookmark Button