VB.NET won't run in debugger

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a program that has suddenly stopped running in the debugger. It won't
even let me step into the main sub. I have run this same code successfully
in the debugger on a coworkers machine. I have tried reinstalling Visual
Studio. What happens when I press the debug button is that the watch windows
etc come up but I can't see my UI. I can run the program outside the
debugger.
What can I do to get this to run in the debugger - it has cost me hours of
development time.
 
claire said:
I have a program that has suddenly stopped running in the debugger. It
won't
even let me step into the main sub. I have run this same code
successfully
in the debugger on a coworkers machine. I have tried reinstalling Visual
Studio. What happens when I press the debug button is that the watch
windows
etc come up but I can't see my UI. I can run the program outside the
debugger.

Delete the project's "bin" and "obj" directories and try again.
 
I have found a possble solution after I had the same problem.

You probably have more than one project in your solution (The main project, plus an "InstallShield" project",perhaps)

Make sure you have the main project set up as "Startup Project".

In the Solution Explorer, right click on the Main Project and select "Set as Startup Project".
Everything will then run OK. :-)

I hope that is of some help.

Cheers
 
Last edited:
Back
Top