Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In visual studio 2010 64 bit : I could'nt place a breakpoint in certain lines.
Example

XML
For Each vnItem In List.mcolList
              If IsCodeRemoved(Code, List.Key(vnItem.Value)) Then
                  Dim codeRemaining As String = CodeRemove(List.Key(vnItem.Value), CodeType)
                  If Code <> codeRemaining Then
                      UpdateContingents(List.Key(vnItem.Value), -2)
                  End If
              End If
          Next



Here In the last three lines I could not place break point..Do you have any experience like this in visual studio?
Posted
Updated 27-Jul-12 1:48am
v4
Comments
bluesathish 27-Jul-12 7:13am    
did you try it while runtime? if no, try that you can definatly assign the breakpoint.
sa_sreeraj 27-Jul-12 7:15am    
I can place break point when visual studio is not debugging..but I could'nt place it when VS id debugging..
sa_sreeraj 27-Jul-12 7:20am    
These lines are not executing as well...please help..Is this a problem of visual studio 2010 64bit?

1 solution

You have to write something into the IF-Statement.
try string test = "asdf" or something like this.
 
Share this answer
 
Comments
sa_sreeraj 27-Jul-12 7:45am    
If statement already have lines inside it...sorry for not adding into the question...

For Each vnItem In List.mcolList
If IsCodeRemoved(Code, List.Key(vnItem.Value)) Then
Dim codeRemaining As String = CodeRemove(List.Key(vnItem.Value), CodeType)
If Code <> codeRemaining Then
UpdateContingents(List.Key(vnItem.Value), -2)
End If
End If
Next

This is the code...I could not place breakpoint in the last three lines..End If and Next..
efkah 27-Jul-12 7:55am    
i fail to see the problem, since i am using c#, but the Problem is that the first IF only is for the following line, you need brackets. it translated in http://www.carlosag.net/tools/codetranslator/
u see a bracket error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900