Reputation: 11
I had faced an abnormal visual studio 2015 behavior, referring to the image attached below I was trying to place a breakpoint at line 1438, but right after I start debugging the workspace the breakpoint shifted to line 1440 instead which were affecting my code debugging process.
Hope someone could assist on this matter.
Thank you.
Upvotes: 1
Views: 374
Reputation: 8267
Check your line endings - you probably have a mix of CRLF and LF and CR. Visual studio debugger assumes that the line ending is the same throughout the code. If it started as CRLF and the line in question just has LF, then the breakpoint will be in a different place.
Simple fix if you have Word.
Upvotes: 2