VB.NET won't run in debugger

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.
 
H

Herfried K. Wagner [MVP]

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.
 
Joined
Sep 2, 2007
Messages
3
Reaction score
0
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:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top