Disable JIT debugger when using ScriptControl

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: TomS (anonymous_at_discussions.microsoft.com)
Date: 03/29/04


Date: Mon, 29 Mar 2004 05:06:09 -0800

I'm using the ScriptControl component to execute a VBscript.
If I have the script debugger installed and enabled and the VBscript has an error,
then the user gets the option to look at the VBscript in the debug window.
If I disable the debugger by setting registry key
 HKEY_CURRENT_USER\Software\Microsoft\Windows Script\Settings\JITDebug = 0
or by deleting the key, then I don't get the debug popup.
BUT....
The ScriptControl is in an activeX control I am invoking from a VBscript,
so I have A.vbs calls myAX.method
which creates a ScriptControl and uses it to execute B.vbs.
Before calling the ScriptControl.ExecuteStatement method, myAx resets the registry key, but I still get the debugger.

Is therre a way to disable the debugger when running a script using the ScriptControl component?

[If this isn't the correct forum, can you point me at the right place please?]

Ta,
Tom.



Relevant Pages

  • Re: Nutzung von VBScript innnerhalb von VB6
    ... VBScript in VB6 zu implementieren. ... daß man sie auch bei Microsoft ... > Aber das Ergebnis würde Null sein, da dem Scriptcontrol die Variablen ...
    (microsoft.public.de.vb)
  • Re: script control in vb6
    ... that hosts code written in JScript and VBScript. ... Dim myscript As ScriptControl ... I want to actually do this in an ASP DLL or IIS Application Web ...
    (microsoft.public.scripting.wsh)
  • Re: Grosses Problem mit EVAL (Findet Funktion nicht)
    ... Funktionen als String in das ScriptControl laden - ginge ... aber nur für Funktionen, die von VbScript "verstanden" ... *.bas-Modul, das den Parser implementiert - dort ist es ...
    (microsoft.public.de.vb)
  • Re: Editing and debugging VBScript
    ... "integrated" runtime debugger, only integrated ... I haven't used the script debugger. ... I am trying to get some answers for work related to using VBscript Windows ... need a special editor, just create and debug the vbscript using Visual ...
    (microsoft.public.scripting.vbscript)
  • Re: Debugging in PerlScript
    ... > I don't know about VBScript, but in JScript you just write 'debugger' ... you are suggesting that 'debugger' is likely to work in PerlScript? ...
    (microsoft.public.scripting.wsh)