1

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

Dimitar Tsonev
  • 3,711
  • 5
  • 40
  • 70

2 Answers2

1

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?

Community
  • 1
  • 1
Suma
  • 33,181
  • 16
  • 123
  • 191
0

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.

Yograj Gupta
  • 9,811
  • 3
  • 29
  • 48
  • I want to debug. The 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 – Dimitar Tsonev Jul 19 '12 at 08:49