Page 1 of 1 1
Topic Options
#108788 - 2003-11-24 01:24 PM Debugging a script
bbr0w Offline
Fresh Scripter

Registered: 2003-11-24
Posts: 9
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.

Top
#108789 - 2003-11-24 01:34 PM Re: Debugging a script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no.
the problem is that you actually are trying to debug the batch and as you obviously know, that is not supported in kix.
_________________________
!

download KiXnet

Top
#108790 - 2003-11-24 01:35 PM Re: Debugging a script
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Sounds like your debugging your batch file and not the Kix script.

Can you post your batch file?
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#108791 - 2003-11-24 02:09 PM Re: Debugging a script
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#108792 - 2003-11-24 02:21 PM Re: Debugging a script
bbr0w Offline
Fresh Scripter

Registered: 2003-11-24
Posts: 9
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?
Top
#108793 - 2003-11-24 02:31 PM Re: Debugging a script
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#108794 - 2003-11-24 03:34 PM Re: Debugging a script
bbr0w Offline
Fresh Scripter

Registered: 2003-11-24
Posts: 9
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.
Top
#108795 - 2003-11-24 03:42 PM Re: Debugging a script
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Well not hiding the console so that you can see it execute is a big step forward.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#108796 - 2003-11-26 10:37 AM Re: Debugging a script
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

For another way of debugging see
Debugging script without user input. also during logging on. the advanced way.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 259 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.073 seconds in which 0.029 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org