|
|
|||||||
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. |
||||||||
|
|
|||||||
no. the problem is that you actually are trying to debug the batch and as you obviously know, that is not supported in kix. |
||||||||
|
|
|||||||
Sounds like your debugging your batch file and not the Kix script. Can you post your batch file? |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
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? |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
Well not hiding the console so that you can see it execute is a big step forward. |
||||||||
|
|
|||||||
Dear, For another way of debugging see Debugging script without user input. also during logging on. the advanced way. greetings. |