VB.NET - application encountered a user-defined breakpoint

I'm wrong on VB.NET, the application I'm working on was not written by me.
It works fine through the IDE, but as soon as I run it from exe it gives me the above error.

Any clues?

It really hacked me!

+3
source share
4 answers

Afaik, the only way that can happen if you compile debugging options. You can fix this by doing the following:

  • Right-click your solution on the solution explorer.
  • Select configuration properties.
  • At the top of the dialog should be a combobox, which is most likely to say "Active (debug)."
  • .
  • .
  • > .

: p2p.wrox.com

+3

, , -

Debugger.Break()

, , .exe . Reflector , Debugger.Break() - .

+5

, exe "". () . . .

The reason you see this error is because when you usually compile and run applications in Visual Studio, it compiles the Debug assembly of the executable. The difference between debug build and release build is that the debug build contains additional information added to it by the compiler, so it can be debugged properly.

0
source

I would suggest looking stopin your code. This is what generated this error for me.

0
source

Source: https://habr.com/ru/post/1697496/


All Articles