This is a silly thing I catch myself doing once in a while and I feel that it is a bad habit. It usually goes like this:
For example, let's say I want to pause inside an empty constructor like this one:
public ImAConstructor()
{
//I want to break here but can't :(
}
So I do something like this instead:
public ImAConstructor()
{
int testVar = 0; //TODO: Delete this code. Temporarily inserted to break on.
}
Which just feels ugly to type and probably upsets the programming gods.
I would like a way to do this that doesn't risk leaving pointless code that could confuse others.
If you are using VisualStudio to develop your application, you should be able to place a breakpoint on the opening {
and the closing }
bracket.