I placed 2 breakpoints and one of them turned square. What does it mean? If it helps I am remotely debugging some code.
Asked
Active
Viewed 6,348 times
28
-
1It is conditional breakpoint. You can specify some condition like someValue == true then only then it will hit. – fhnaseer Mar 28 '19 at 09:20
-
6@fhnaseer No, the indication for that is having a plus sign in the breakpoint symbol. – NineBerry Mar 28 '19 at 09: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 '19 at 14:54
-
2It 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. – transporter_room_3 Mar 28 '19 at 15:35
2 Answers
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).
See this question for why this is useful:

NineBerry
- 26,306
- 3
- 62
- 93
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.

Alex Essilfie
- 12,339
- 9
- 70
- 108

Huynh Viet
- 71
- 4