473,770 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Turn off script debugger programmaticall y

Hi,

How can I "disable script debugger" programmaticall y using C#? Its similar
action when we check the check box from IE (Tools | Internet Options...|
Advanced).

Any ideas???

Thanks
Atul
Nov 15 '05 #1
2 4181
You can not do that (I am 99.9% sure), but you can use VB on error resume
next, or JavaScript try-catch to catch and handle all errors.

Best Regards

Anders Both

"Atul" <py*****@hotmai l.com> wrote in message
news:#V******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

How can I "disable script debugger" programmaticall y using C#? Its similar
action when we check the check box from IE (Tools | Internet Options...|
Advanced).

Any ideas???

Thanks
Atul

Nov 15 '05 #2
Well,
I got one way to do this.
Please find the attached C# code.

using Microsoft.Win32 ; //To manipulate registry settings to disable script
debugger

private void disableScriptDe bugger()
{
RegistryKey regKey =
Registry.Curren tUser.OpenSubKe y("Software\\Mi crosoft\\Intern et
Explorer\\Main" ,true);
if (regKey != null)
{
try
{
string strChecked = (string)regKey. GetValue("Disab le Script Debugger");
if (strChecked != null && strChecked.ToLo wer() != "yes")
regKey.SetValue ("Disable Script Debugger","yes" );
}
catch(Exception ex)
{
throw new ApplicationExce ption(ex.Messag e,null);
}
}
}

Thanks
Atul

"Atul" <py*****@hotmai l.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,

How can I "disable script debugger" programmaticall y using C#? Its similar
action when we check the check box from IE (Tools | Internet Options...|
Advanced).

Any ideas???

Thanks
Atul

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2768
by: Katie M | last post by:
Hi, I'm running into a problem where the Microsoft Script Debugger is no longer starting up when it encounters an error or breakpoint. It used to prompt whenever it encountered an error, but is no longer doing so. It doesn't prompt to debug when it encounters an error. It doesn't open when I use the "STOP" command in my VBScript. It doesn't open when I select View|Script Debugger|Open from the IE menu. It just doesn't open. The only...
5
1420
by: cyaron | last post by:
Hi, I would like to ask for your help I would like to download debugger for javascript. Since I works only with IE I thought of trying using the Microsoft Script Debugger. I found the following URL
2
1504
by: Archer | last post by:
I wanna to run ms script debugger to debug my web including javascript code. but when I click 'Yes' in the IE bug-found message box there is no reaction on it.the script debugger seems unused.What could I do?
0
3227
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
1
1672
by: Steve Richter | last post by:
have just installed the Microsoft script debugger for windows 2000: http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en ( notice the "this download is available to customers running genuine Windows Software" message on that page! ) and I am following the instructions here: http://www.devguru.com/features/tutorials/msd/msd_tutorial.html on how to install and use the debugger.
8
3373
by: Pachydermitis | last post by:
Hi, Any help would be appreciated. I can't get IE to show me my script errors. This makes it impossible to debug anything. Disable Script debugging (Internet Explorer) is unchecked Disable Script debugging (Other) is unchecked Display notification about every script error is Checked Thanks for your help
1
1969
by: Lonewolf | last post by:
Hi, could someone please enlighten me on how I could turn on the above mentioned two windows services programmatically? Reason is i am writing a program which needs to turn on these two services in order to access the UPnP router to turn on port forwarding programmatically, and turn it off after that. Can someone please enlighten me on the functions or Win32 API to call to achieve it ? thank you so much for enlightening me on this.
4
5944
by: aramsey | last post by:
I have a javascript program that works fine under Firefox and on IE when running XP, but is having a problem with IE running under Windows 2000 Pro. On my personal XP development machine I have the Microsoft Script Editor and I can set a breakpoint, step through code, inspect variables, etc... with no problem. On a machine where I am trying to debug this problem I am running Windows 2000 Pro with IE 6. I installed the Microsoft...
14
6139
by: mistral | last post by:
Need php script to create mySQL database programmatically; since hosting configuration may not allow create database from script, script also need eliminate/rewrite all restrictions in appropriate places in that hosting.
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.