bbr0w
(Fresh Scripter)
2003-11-24 01:24 PM
Debugging a script

Hello,

I have been having some trouble with our script and am trying to debug it. However, when I execute the debug command the first error returned is rem @echo off is not a recognized command (unknown command!). The script is started from a batch file and this is the first line within that batch file. Is this batch file incorrectly written? Any help is appreciated.


LonkeroAdministrator
(KiX Master Guru)
2003-11-24 01:34 PM
Re: Debugging a script

no.
the problem is that you actually are trying to debug the batch and as you obviously know, that is not supported in kix.


AzzerShaw
(Seasoned Scripter)
2003-11-24 01:35 PM
Re: Debugging a script

Sounds like your debugging your batch file and not the Kix script.

Can you post your batch file?


Kdyer
(KiX Supporter)
2003-11-24 02:09 PM
Re: Debugging a script

Ways to approach Debugging (From the Manual):

;(1) In code
DEBUG ON
;code...
DEBUG OFF

(2) From the command line or batch file:
KIX32 YOURSCRIPT.kix /d

HTH,

Kent


bbr0w
(Fresh Scripter)
2003-11-24 02:21 PM
Re: Debugging a script

O.K. I see what I was doing wrong. Now, I have started again and when the script gets to hide console the command prompt disappears. How can I finish seeing the script execute?

Kdyer
(KiX Supporter)
2003-11-24 02:31 PM
Re: Debugging a script

One of two ways..
(1) Add a Get $x at then end of your script.
(2) Run it from a command line and not a batch file..

Look for an EXIT/QUIT and comment out these lines.

Kent


bbr0w
(Fresh Scripter)
2003-11-24 03:34 PM
Re: Debugging a script

I am currently trying to debug the script from the command line. I have added the Get $x as suggested and I really didn't see any change. The only way I can debug the entire script is to suppress or comma out the hide console command in the script.

Howard Bullock
(KiX Supporter)
2003-11-24 03:42 PM
Re: Debugging a script

Well not hiding the console so that you can see it execute is a big step forward.

MCA
(KiX Supporter)
2003-11-26 10:37 AM
Re: Debugging a script

Dear,

For another way of debugging see
Debugging script without user input. also during logging on. the advanced way.
greetings.