#198349 - 2010-04-07 06:28 PM
Any chance we could get a command line switch added to turn BREAK ON?
|
IanDubbelboer
Fresh Scripter
Registered: 2004-06-25
Posts: 24
|
I understand the need to have the default mode BREAK OFF, but I just gave myself and unexpected log off by exiting out of a script I was debugging before I had evaluated BREAK ON.
I was thinking if we could add a command line switch to turn BREAK ON it would be much easier to avoid screwing yourself up.
|
Top
|
|
|
|
#198353 - 2010-04-07 07:02 PM
Re: Any chance we could get a command line switch added to turn BREAK ON?
[Re: IanDubbelboer]
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
make another script on your desktop
break on
call "scriptname.kix"
|
Top
|
|
|
|
#198356 - 2010-04-07 08:09 PM
Re: Any chance we could get a command line switch added to turn BREAK ON?
[Re: Radimus]
|
IanDubbelboer
Fresh Scripter
Registered: 2004-06-25
Posts: 24
|
Ya I could do that. The time it gets me is usually when I create something quick. Still a pain in the backside.
|
Top
|
|
|
|
#198372 - 2010-04-08 04:27 PM
Re: Any chance we could get a command line switch added to turn BREAK ON?
[Re: Richard H.]
|
IanDubbelboer
Fresh Scripter
Registered: 2004-06-25
Posts: 24
|
Thanks guys, I think I am just in the minority for what I want.
I got into writing full applications in Kix using Kixforms for the GUI. These are "scripts" that are some 4000 lines long. Typically, that is just too big to easily debug with -d and stepping through the script. I got into what might be the bad habit of dumping a problem function into a seperate script and debuging it there with known inputs.
I probably should just use DEBUG ON, heck I should be using a different language, but the seperate script always made it easier to edit just that part of the script without losing my spot.
The problem with doing this is the classic. 1. Copy the code into a brand new script 2. "Lets fire it up and see what is wrong." 3. "Oh look, there it is. *muddle with code* Guess I don't need to debug." 4. Close the window without geting past BREAK ON 5. Scream "NOT AGAIN!" as I log myself off.
|
Top
|
|
|
|
#198377 - 2010-04-08 11:25 PM
Re: Any chance we could get a command line switch added to turn BREAK ON?
[Re: Mart]
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4549
Loc: USA
|
I don't think it would break anything, but it would definately require turning it on when needed... alas it don't matter
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 370 anonymous users online.
|
|
|