#30181 - 2002-10-04 12:45 AM
how to Pause my script
|
Steve M
Fresh Scripter
Registered: 2002-05-08
Posts: 40
Loc: Orange,California
|
How can I pause my script line by line?
_________________________
Steve
|
Top
|
|
|
|
#30183 - 2002-10-04 12:51 AM
Re: how to Pause my script
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Steve,
You can also do..
In the script add a line:
code:
DEBUG ON
You can also do -
kix32 yourscript /d
HTH,
Kent
|
Top
|
|
|
|
#30185 - 2002-12-05 11:55 AM
Re: how to Pause my script
|
MCA
KiX Supporter
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
It isn't very clear what his goal is. Possible he want to debug his script.
For this situation it can be very frustrating when you need to entry an enormous amount of ENTERs to get to the point. Mostly a big frustation, when you are to late to stop at crucial point.
To solve this problem we advise you to use our tool kixstrip, which can add addi- tional to your script. The new makes it possible to see - which lines were executed - what was the last status of execution - what was the moment of execution - etc. On our site you find also kixstrip.pdf documentation. greetings.
btw: symbol on our homepage has been linked to related http://kixtart.org topic.
|
Top
|
|
|
|
#30186 - 2002-12-05 02:28 PM
Re: how to Pause my script
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
MCA,
You are right..
However..
His question was -
>> How can I pause my script line by line?
I believe we have covered the answer with either /d or debug_on.
However... The KiXstrip solution would work too. But, if it is only a few lines, is that really appropriate?
He could also add in some @error, @serror handling too.. That way, if an error occurred, it would generate or alert to a problem.
Additionally, I will find myself running a large script with an issue from the command line, so the results don't just pass by.
Just some thoughts.
Kent
|
Top
|
|
|
|
#30189 - 2002-12-05 05:00 PM
Re: how to Pause my script
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
You are taking me back the days of Calculus!
I was thinking along those lines too.. That is, if you have a section of script that is in question, break it out to test file run it.. Then debug and when complete, put it back in.
Kent
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 466 anonymous users online.
|
|
|