I placed 2 breakpoints and one of them turned square. What does it mean? If it helps I am remotely debugging some code.
-
1It is conditional breakpoint. You can specify some condition like someValue == true then only then it will hit.– fhnaseerMar 28, 2019 at 9:20
-
6@fhnaseer No, the indication for that is having a plus sign in the breakpoint symbol.– NineBerryMar 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.– sfdcfoxMar 28, 2019 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_3Mar 28, 2019 at 15:35
2 Answers
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:
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.