What is counterpart to C++ "__asm int 3"

What is counterpart to C++ "__asm int 3"

am 11.01.2008 01:53:49 von Siegfried Heintze

I have a VB.NET program that is working fine from Visual Studio 2005.
However, when I try to compile and run it from the cmd.exe prompt, it throws
an exception.

If this was C++, I would insert "__asm int 3" in the souce code to force it
to bring up the visual studio debugger so I could single step thru the
constructor that is causing the problem when launching from command line.

Thanks,
Siegfried

Re: What is counterpart to C++ "__asm int 3"

am 11.01.2008 02:39:27 von Chris Mullins

Debugger.Break()

http://msdn2.microsoft.com/en-us/library/system.diagnostics. debugger.break.aspx

--
Chris Mullins

"Siegfried Heintze" wrote in message
news:OcOpux%23UIHA.5300@TK2MSFTNGP03.phx.gbl...
>I have a VB.NET program that is working fine from Visual Studio 2005.
>However, when I try to compile and run it from the cmd.exe prompt, it
>throws an exception.
>
> If this was C++, I would insert "__asm int 3" in the souce code to force
> it to bring up the visual studio debugger so I could single step thru the
> constructor that is causing the problem when launching from command line.
>
> Thanks,
> Siegfried
>