-
Breakpoints in vb.net?
I searched the board for breakpoints, and all the threads just said to set build to Debug, but that is what mine is set to.
But no matter where I set my breakpoints, it says they won't be hit.
Sometimes for "no symbols loaded" or "no executable code on this line".
How do I get the breakpoints to actually, you know, break?
-
Try deleting your bin folder then rebuild. I had a similar problem and that fixed it.
-
that didn't do it, same message.
-
Maybe delete the solution files and start the the project by double clicking the project file to make a new solution.???
-
I can think of three possibilites.
1- you are using Release not Debug in the configuration manager, you can see it in the tool bar at top of IDE.
2- You have removed the tick for the Build in Configuration manager
3- if thats an ASPX file, removed the Debug=True from page directives.
-
I'm using Debug, Build is checked, and it's not an ASP file, anyone else have an idea?
-
So what exactly is the problem? Does it not let you place the breakpoints because it says 'no executable code' or do you set the breakpoints but they don't break. Is the problem with just this project or do they all do this? If all else fails try a reinstall.
-
It sets them, but when I try to run it they get replaced with icon with a ? in the center.
This is the only thing I've done in VB.NET, so I don't know if it's a program wide problem
-
The ? is normal it always shows that at runtime. Are you sure the code you are setting the breakpoint at is getting run? Just make a simple app or part in yout app to test the breakpoints. Or set it in a form_load event of the startup form to make sure its not the specific location you are trying.