1

I set a breakpoint in one of the class. while debugging my vb.net winform project, the breakpoint moving to the next line which dont have any code. I could not understand what was wrong? I cleaned up my solution and re-build my solution but could not resolve this issue.

4
  • 2
    Is this on every line? or on a specific line? if the latter - please cite a specific example. I would also expect the VB and C# implementation to be different here, so tagging both is misleading. Commented Aug 25, 2011 at 9:22
  • Usually deleting the obj and bin folders helps for me. Commented Aug 25, 2011 at 9:25
  • This behaviour occurs for specific lines not for every line. In couple of methods of my project, if i add If loop this unexpected behaviour is occuring. Commented Aug 25, 2011 at 9:39
  • Could you write us the line you trying to set the breackpoint? Commented Aug 25, 2011 at 9:50

1 Answer 1

1

This usually indicates that the .pdb file is out of sync with the code. Right click the solution or project and select Clean. Then rebuild the solution or project and then try to debug.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.