Solved

How to stop Debugger?

Posted on 2004-04-05
6
589 Views
Last Modified: 2010-04-13
Hi!

I have Visual Studio installed on my Win2000 system.

Every time when some error occurs, I get an option to stop the process that generated the error, or to start the debugger ( Visual C++ ).

How do I prevent this option to occur? I just want to stop the application without any questions asked.

0
Comment
Question by:dbrckovi
  • 3
  • 2
6 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 10756635
Try this:

#If DEBUG Then
   Stop
#Else
   ' Don't stop
#End If

ref:http://msdn.microsoft.com/library/en-us/vsdebug/html/vxconstopstatementsinmanagedcode.asp
0
 
LVL 11

Author Comment

by:dbrckovi
ID: 10756861
Where should I put this?

I'm not developing anything in VC++.

I'm talking about general run-time errors. For example. Windows Explorer sometimes reports an error saying it is not able to execute some Java Script lines, and then
opens Visual C++ with the line which generated an error highlighted.

I have examined the link you have posted, and disabled Just-In-Time debugging.
I'll have to wait for some errors to see if it is disabled properly.
0
 
LVL 11

Author Comment

by:dbrckovi
ID: 10756880
I ment internet explorer, but it doesn't matter which app generated an error.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 67

Assisted Solution

by:sirbounty
sirbounty earned 80 total points
ID: 10757483
Oh - I understand now...
Try this:

From IE - Click Tools/Internet Options
Advanced Tab
Check both
 Disable script debugging check box
 Display a notification about every script error check box
under the Browsing section...
0
 
LVL 86

Accepted Solution

by:
jkr earned 120 total points
ID: 10758811
This behaviour is controlled by the 'AeDebug' registry key. See

http://support.microsoft.com/default.aspx?scid=kb;en-us;103861 ("INFO: Choosing the Debugger That the System Will Spawn")
http://support.microsoft.com/default.aspx?scid=kb;en-us;188296 ("How to Disable Dr. Watson for Windows") - works for VS also
http://support.microsoft.com/default.aspx?scid=kb;en-us;138786 ("PRB: Just-In-Time Debugging Launches Wrong Debugger")
0
 
LVL 11

Author Comment

by:dbrckovi
ID: 10763521
Thanks.

jkr
I have deleted this key, it now ends an app without questions asked

sirbounty
Thanks for disabling java script errors.

Some app was calling some java script about 10 times every morning which was generating errors every time. This is the main reason why I wanted to disable the debugger.
Now I don't even get the error messages, Thanks!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Print Server: Problem from NT to windows 2008 server environment 3 631
auto copy 8 614
P2V Windows Server 2000 - Network Issue 14 46
Referencing a mapped drive 6 133
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now