Looping Through My.Settings

I have found several forms of this code in couple of places on the net. And it is suppose to work according to the feedback left by the original posters. However, when I step through the code, it skips over the line to display the message box.

For Each CSPV CSPV As Configuration.SettingsPropertyValue In My.Settings.PropertyValues
MessageBox.Show(CSPV.Name & " - " & CSPV.PropertyValue.ToString)
Next

This answer is a VB6 response.
Not sure if you are using that ?
Click the left border of the code window, on that line.
It should go brown, indicating a break point.
Run the program and see if the program breaks on that line.
If it doesn't, then place the break point earlier in the code flow, until it does break.
Then press F8 to single step through the code execution.

Sorry, what I meant was my answer is related to VB6.
Probably your code is VB.NET
I have never used VB.NET so I do not know which your code related to.

I was just qualifying my answer, in case I was wrong, in giving a VB6 solution.
If the VB.NET IDE allows you to set break points, and to step through code, then the intention of my solution could be used. You just might have to handle it differently.

My issue is not with debugging (setting break points and stepping through code). VB 2010 IDE is not much different that VB6 in most (~90%) respects. My issue is with how to loop through My.Settings as the code (below) does not seem to work while others have indicated that it does.

For Each CSPV As Configuration.SettingsPropertyValue In My.Settings.PropertyValues
MessageBox.Show(CSPV.Name & " - " & CSPV.PropertyValue.ToString)
Next