Solved

Having problems with visual studio 2005 debugger.

Posted on 2006-11-14
9
300 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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