Solved

Having problems with visual studio 2005 debugger.

Posted on 2006-11-14
9
303 Views
Last Modified: 2010-04-23
Hey experts how is everything.
I ve been having problems with my visual studio debugger...I reinstall visual studio twice already.
Well here is the scenario...usually when I run my program (F5) or just go to debug the program runs fine..but as soon as it hits an error everthing just freezes..the debugger doesnt fire up or nothing...and the only way i can actually see the error that it gives is only for a breef second when I hit "Alt + Control + Delete" to log off.

now I though maybe its my code or something..so I would deliberately make another window application and misspell a variable and try to run it...and yet still visual studio freezes up and the only time im able to see the error if i try to log off the computer.

Is there a way to check if the debugger is working correctly?
0
Comment
Question by:saruman101
  • 5
  • 2
9 Comments
 

Author Comment

by:saruman101
ID: 17942050
To keep things updated I try to make my own error to see if the debugger fire up and eventually it didnt.
Example I did this to see if I can get it once the program runs

///
Dim A as integer = ""
//
this eventually the debuggers see and stops the program from running..but instead it doesnt..and again I still face the same problem again..where I need to log off.

Is there any way to make sure the debugger is running before I compile and execute my program.
0
 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17943253
What's confusing is the changes you mentioned to deliberately cause runtime errors sound to me like they should have triggered compiler errors.  Did I misunderstand that?  Does the code compile correctly, but when an exception is thrown Visual Studio tanks, or is it that even a compiler error remains a mystery until you've restarted?
0
 

Author Comment

by:saruman101
ID: 17947389
Thanks for responding..well like I said when I made that error deliberately the debugger doesn't shoot off...and let say for example another error that could occur during runtime even that does not shoot off the debugger....is there anyway through visual studio to find out if it is just not installed..or if there is a way to activate the debugger...because all the time that I try to compile and run, if it is not running it wont catch anything...

Hell its like having a try block with catch and even that doesnt do nothing , nada, zippo.

0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17947413
Sorry, I don't think I phrased my question very clearly.  If you make a deliberate SYNTAX error, does the compiler still catch that?  Or is this only applicable to runtime errors that ought to be handled by the debugger?

I'm trying to determine the scope and extent of the problem.
0
 

Author Comment

by:saruman101
ID: 17947577
sorry I should of been more clear .
No I'm talking about runtime errors.

Here I will give you another example
Let say I'm making a connection to an access database.
Now let say I'm declaring an OLEDBCOMMAND ,but I never made a new instance of that object...along the way I make everything else..the connection,SQL statement, etc etc..
Now Mind you since I didnt make a new instance object of the command it would still run...but since I know it will give me an error during runtime the debugger never shoots off to tell me "Hey this line..this code does not make sense etc etc ",
instead the whole visual studio freezes and when and ONLY when I decide to log off my computer I then shows me the debugger catching the error for a brief second and of course then im log off.

Also the error I said I made deliberately
which is
Dim A as integer = ""

Let say that instead I made it into 1
and somewhere along runtime within a text box I decide to pass this value to it "" (blank)..therefore, this the debugger should catch as well...yet it freezes..and again only when I hit ctrl + alt + del
and I choose to either log off or shut down I see the debugger briefly for like 2 or 3 seconds and well you get the idea what happens after that.

 
0
 

Author Comment

by:saruman101
ID: 17949064
I just reinstalled Visual studio for the 3rd time and I still get the same error.
Is there a way to know if the debugger is being stopped or not running when I start up Visual Studio 2005?
0
 

Author Comment

by:saruman101
ID: 17980276
Hey I figured out the problem believe it or not, it was my anti virus program.
For some reason everytime I disable my antivirus program the debugger works just fine.
But if I restart my machine and have the antivirus running as soon as windows boot up it gives me the same error that I had the last time.

Now for some crazy reason if I disable my anti virus and run my visual studio 2005 and then load it up again things work fine.
To tell you the truth I don't know why it happens , but I'm happy it works :)

0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18171240
PAQed with points refunded (200)

Computer101
EE Admin
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question