?
Solved

How to stop Debugger?

Posted on 2004-04-05
6
Medium Priority
?
598 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
LVL 67

Assisted Solution

by:sirbounty
sirbounty earned 320 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 480 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

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.

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…
What's worse than having your data encrypted by ransomware? Getting attacked by a so-called "wiper," which simply destroys the data and offers you no hope of ever seeing it again.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

801 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