Page 1 of 1 1
Topic Options
#30181 - 2002-10-04 12:45 AM how to Pause my script
Steve M Offline
Fresh Scripter

Registered: 2002-05-08
Posts: 40
Loc: Orange,California
How can I pause my script line by line?
_________________________
Steve

Top
#30182 - 2002-10-04 12:49 AM Re: how to Pause my script
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
code:
  "Paused ... hit any key to continue"
get $

hth

Jochen

[ 04. October 2002, 00:50: Message edited by: jpols ]
_________________________



Top
#30183 - 2002-10-04 12:51 AM Re: how to Pause my script
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#30184 - 2002-10-04 01:20 AM Re: how to Pause my script
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
ahh ... missed 'line by line' Sorry !
_________________________



Top
#30185 - 2002-12-05 11:55 AM Re: how to Pause my script
MCA Offline
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.
_________________________
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
#30186 - 2002-12-05 02:28 PM Re: how to Pause my script
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#30187 - 2002-12-05 02:43 PM Re: how to Pause my script
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
...of course, one could always go to sleep... [Wink]
_________________________
We all live in a Yellow Subroutine...

Top
#30188 - 2002-12-05 04:56 PM Re: how to Pause my script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kent, I think scanning technology is the best:
split into half.
the erroring side, split to half...
and so on until on single line.

not so quick maybe but you don't need to do so much.
_________________________
!

download KiXnet

Top
#30189 - 2002-12-05 05:00 PM Re: how to Pause my script
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jooel,

You are taking me back the days of Calculus! [Big Grin] [Big Grin]

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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

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
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.056 seconds in which 0.023 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