28

I placed 2 breakpoints and one of them turned square. What does it mean? If it helps I am remotely debugging some code.

screenshot of the breakpoints window

4
  • 1
    It is conditional breakpoint. You can specify some condition like someValue == true then only then it will hit.
    – fhnaseer
    Mar 28, 2019 at 9:20
  • 6
    @fhnaseer No, the indication for that is having a plus sign in the breakpoint symbol.
    – NineBerry
    Mar 28, 2019 at 9:23
  • 10
    "◇" is a diamond (or less commonly, rhombus), "□" is a square. While I rarely ever post comments of this nature, I think it's important to note because people are more likely to be searching for the correct term for the symbol when encountering this situation.
    – sfdcfox
    Mar 28, 2019 at 14:54
  • 2
    It is indeed referred to as a diamond in the documentation which is actually why I did not catch it in my search through the debugging section. It looks like it has 4 right angles which makes it a square still regardless of rotation. Mar 28, 2019 at 15:35

2 Answers 2

38

It means execution will not break at that breakpoint, but only a message will be output in the debugging log.

To change this, right click on the breakpoint and choose "Settings" (In older VS Version) or "Actions" (starting with VS 2017).

enter image description here

See this question for why this is useful:

0
5

square breakpoint you mention is Breakpoint actions and tracepoints.

According to learn.microsoft.com debugger using breakpoint

A tracepoint is a breakpoint that prints a message to the Output window. A tracepoint can act like a temporary trace statement in the programming language.

You can change the breakpoint setting by click on setting button near breakpoint by moving cursor to breakpoint.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.