World.Execute question

Posted by Poromenos on Wed 16 Jun 2004 08:24 PM — 13 posts, 40,530 views.

Greece #0
I have a plugin that heals you. The alias to enable it is "Heal:Enable On"
I enter this and get this:
Heal:Enable On
Heal: Enabled plugin.

The second line is the output note.

However, if i do a //execute "heal:enable on", I get a scripting error:
Error number: -2146827286
Event: Execution of line 1 column 1
Description: Syntax error
Line in error:

Called by: Immediate execution

What's going on? I used it in a plugin too and got the same error. Am I missing something obvious?
By the way, does anyone know how to turn of the annoying script debugger?
Greece #1
Ah, damn I'm stupid. I tried with World.Execute and remembered that there was the VB Execute command. Ignore this thread.
Australia Forum Administrator #2
What debugger?
Greece #3
Whenever there is a scripting error a stupid debugger pops up asking me if i want to debug using MS's visual studio or MS's script debugger... I don't know what I installed and enabled it...
USA #4
Any microsoft compiler you install will automatically install and enable it for you to debug your own applications. The problem is that Windows can't differenciate between something you wrote and have the source for or someone elses. You can't disable it, without screwing up the compiler.
Greece #5
I'm pretty sure there's a registry option that specifies the debugger, or whether there is in fact a debugger to launch... I just have to find it...
Greece #6
For future reference, it was Visual InterDev. There is an option to disable scripting there.
Australia Forum Administrator #7
Is that the same place to disable the stupid question I get on *every* help page for the VBscript documentation help file?

Every time I view something (eg. ubound) a dialog box pops up:


A Runtime Error has occurred. Do you wish to Debug?

Line: 56
Error: Object required

[Yes] [No]


I say "no" and I view the page which seems perfectly normal. If I could turn that off I would be very happy.
Greece #8
That's control panel->internet options->Advanced->disable script debugging.
Or at least i think so.
Australia Forum Administrator #9

Right. With debugging *disabled*, disabled, mark you, I now see this larger dialog box:

Greece #10
Well, at least it's not asking you if you want to debug :P I have no idea what to do with that... Stupid Microsoft errors...
#11
Ive been having the same annoying problem for ages. I seem to have sorted it by checking 'disable script debugging' and unchecking 'display a notification about every script error' in the advanced internet options mentioned previously. So thanks for that Poromenos.
Australia Forum Administrator #12
Well that didn't work for me, but this did:

  • In Control Panel -> Internet Options -> Advanced, uncheck "Disable Script Debugging"
  • In Visual Interdev -> Tools -> Options -> Debugger -> General, uncheck "Just-In-Time Debugger"


This seems a bit counter-intuitive to me, the first option unchecked implies you want script debugging, but the second one seems to be the one that does the trick.