Solved

How to stop Debugger?

Posted on 2004-04-05
6
595 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

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…
In this blog we highlight approaches to managed security as a service.  We also look into ConnectWise’s value in aiding MSPs’ security management and indicate why critical alerting is a necessary integration.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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