Discussion:
debugging vbs called from an application....
(too old to reply)
Daniel Weinand
2004-12-16 11:23:00 UTC
Permalink
hi,
i'm trying to debug an vbs script that is called by an application at
startup. in the script im usinf com objects from this application. so the
script must be started from within the app.

is there any chance to call the debugger out of the script taht was started
by the app?

as far as i know you have to call scripts like that to debug them:
Wscript //D C:\Test.vbs

now you can call the debugger with the "stop" statement.

due to the fact that my script is called by the application i cant use the
stop statement. cause the script is not called like above.

hope that anybody can understand my problem.

any ideas? proposals?

cheers
Gerry Hickman
2004-12-16 22:23:22 UTC
Permalink
Post by Daniel Weinand
hope that anybody can understand my problem.
I understand the problem perfectly, but I'm not sure of the solution.
The only time I can think this would be needed is if your application is
some kind of dev env for scripting like PrimalScript? What other
possible use could there be?

Are you using COM scripting interfaces? If so, is there no interface
related to debugging?
--
Gerry Hickman (London UK)
Daniel Weinand
2004-12-17 08:20:44 UTC
Permalink
Post by Gerry Hickman
Post by Daniel Weinand
hope that anybody can understand my problem.
I understand the problem perfectly, but I'm not sure of the solution.
The only time I can think this would be needed is if your application is
some kind of dev env for scripting like PrimalScript? What other
possible use could there be?
Are you using COM scripting interfaces? If so, is there no interface
related to debugging?
hi gerry,

as far as i know there is no debug related interface. but till now, no feedback from
the manufacturer.

but i think i have solved my problem. for now it works.
hope its a solution for longer time.
i'm doing it this way:

//TODO:
//Create a event class and register class

//on event
Dim WshShell, param2
Set WshShell = CreateObject("WScript.Shell")
//call the com object
param2 = oFF.Panes("F_PROJEKTE").DSN
//call the script
WshShell.Run "cscript //D
\\Servername\FlowFact_demo\profiles\Folder\test.vbs param1 " & param2 & " "

its now workig with a, let me tell it proxy class. this class is started normaly by the app.
in this "class" i catch the events and call my script(s) with the //D flag. needed parameters
are given form this call to the script. so i can use "stop" in the called script

if there is a better way, let me know it.
but i think its ok.

thanks for your time.

cheers

Loading...