Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a null statement to hang a breakpoint on
Message
From
15/08/2006 14:31:36
 
 
To
15/08/2006 14:13:49
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01144613
Message ID:
01145702
Views:
13
I guess I spoke too soon. VS will let you place a break point on a semi-colon, but when you run in debug mode, it ignores it, skips it, and removes the breakpoint.

I guess I need to revert this issue to open.

Any ideas.

>Christof,
>
>Vielen dank for the tip. Using your suggestion, I won't have to explain to fellow coders why I have a pointless continue in a lot of my for-loops.
>
>I think that I found a do-nothing statement that I can hang a breakpoint on that won't make my code confusing to others or waste any resources.
>
>C# won't allow me to use null or void, but it looks like it will just allow an empty line, i.e., just a semi-colon on a line by itself. I only thought to try this because of your suggestion of breaking up my for-loop onto multiple lines. Du hast mir doch gehilft. (This email does not obligate you to provide me with online Deutch lessons.)
>
>Thanks,
>
>>Hi David,
>>
>>
>>for (int yearIndex = 0; yearIndex < totalYears; yearIndex++)
>>
>>You need to write the line like this:
>>
>>for (int yearIndex = 0; yearIndex < totalYears;
>>     yearIndex++)
>>
>>Then you can break on yearIndex++ which is the the statement that is executed right after the last line inside the for loop.
David S. Alexander
Kettley Publishing
20271 SW Birch Street, 2nd Floor
Newport Beach, CA 92660-1752
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform