Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
break point is not hitting in vb.net windows form
Posted
Comments
Estys 17-Jan-11 8:03am    
So, where is your breakpoint?
Prerak Patel 18-Jan-11 4:51am    
Is the breakpoint shown as solid brown circle? or is there any warning symbol with your breakpoint?!

Try putting a breakpoint at the first statement in the constructor. If it stops there, the code you set the breakpoint on is never being executed, and if it's not executed, the debugger won't stop there.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Jan-11 19:54pm    
This is most likely - a 5. But there also a chance that it won't stop on the constructor -- what to do now? :-)
#realJSOP 18-Jan-11 5:30am    
Based on the info he hasn't provided, I guess we're going to have to just wait and see.
Sergey Alexandrovich Kryukov 18-Jan-11 21:31pm    
:-)
Check:

1) Are you running the debug version: top of the screen, it will say Debug or Release. Ensure you are running debug.

2) Use F5 to execute in debugger, not SHIFT+F5

3) Your breakpoint is on a line of executable code that you will reach in a known way. If in doubt, put it at the top of your Click handler (or whatever you are using) and single step through.
 
Share this answer
 
It could be the case of "The breakpoint will not currently be hit."

If so,
1) Close your project. Remove Bin and Obj.
2) Open project. Clean Solution and then rebuild it.

Check here for more[^]
 
Share this answer
 
v2
Comments
Prerak Patel 18-Jan-11 5:01am    
What's wrong with it? It could be the case! Even google returns 124,000 results.
Right click the project name in the Solution Explorer and choose properties. Then choose the Compile tab on the left. Click on the Advanced Compiler Settings.

Hope this could be the problem there.
 
Share this answer
 

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