Dimitar Tsonev
Dimitar Tsonev

Reputation: 3892

Prevent showing visual studio window when Breakpoint hits while debugging c#

When a breakpoints hits, the VS window is showed automatically and points to the line with the breakpoint. For my case that's not helping. Is it possible to prevent the VS studio window from showing when the breakpoint hits ? Thanks

EDIT: he problem is that I'm reading from a barcode scanner gun. While reading, the breakpoint hits thus switching to the VS window and some portion of the barcode is printed in the source file :) That's why I don't want it to switch to the VS window

Upvotes: 1

Views: 279

Answers (2)

Suma
Suma

Reputation: 34463

If you set the breakpoint in the Visual Studio, you can change it to "tracepoint" by specifying "Continue execution" as "When hit".

If the breakpoint is present in the executable, it can be disabled as described in How to disable a programmatical breakpoint / assert?

Upvotes: 1

Yograj Gupta
Yograj Gupta

Reputation: 9869

You can start your application as Start Without Debugging or use (Ctrl + F5) for that.

Or If you want to debug, but not for a condition, you can provide the condition on breakpoints when to hit.

Upvotes: 0

Related Questions