Solved

How to stop Debugger?

Posted on 2004-04-05
6
590 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
P2V Windows NT/2000 SP4 3 1,824
Windows 8 in a W2K Domain 7 584
win2k service packs 5 650
VMware ESXi 6:  Migrate  Windows 2000 Server guest from ESXi 4.1 5 410
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…
Employees depend heavily on their PCs, and new threats like ransomware make it even more critical to protect their important data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
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…

776 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