#20228 - 2002-04-19 04:48 PM
KIXtart Script Debugger/Tester
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
After watching numerous posts on problematic code, I believe a new programming project is worthwhile -- a Kixtart script Debugger.
The most common mistakes seem to be syntax errors rather than logic errors, so I propose and am willing to work on creating a program (or even a .kix script) that can analyze scripts for syntax and logic errors.
Here are the preliminary proposed functions of such a program:
1. Detect syntax problems with quotes, parentheses, operators, and expressions.
2. Detect general problems with multipart functions, such as loops, user-defined functions, and File handles.
3. Trace through a script while tracking the values of all expressions, variables, and error codes currently in use.
4. Suggest ways to tighten code, perhaps consolidating statements and/or simplifying case/if statements.
....
These are just a start. Is anyone interested or would like to post more ideas on something like this? Or is there a current product available that already provides this functionality? Any and all input would be greatly appreciated.
Brian
|
Top
|
|
|
|
#20229 - 2002-04-19 05:34 PM
Re: KIXtart Script Debugger/Tester
|
Anonymous
Anonymous
Unregistered
|
Isn't that what Kixstrip and Kixref already do??
|
Top
|
|
|
|
#20230 - 2002-04-19 05:43 PM
Re: KIXtart Script Debugger/Tester
|
kholm
Korg Regular
   
Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
|
Hi Brian,
As an example of a KiXtart script debugger using a KiXtart script as debugger, have a look at my script Making use of KiXGUI, easy cut'n paste code I know the title is misleading, but this is in fact a KiX debugger written in KiX. It fills out your 1. and 2. goal.
As for the 3. possibility to trace and 4. enhance the script you have a hard job, but good luck (might be funn to make).
Also have a look at MCA's tools KiXStrip.exe, whitch will do 1. and 2. and partly 3. It can be downloaded from MCA's homepage
-Erik
|
Top
|
|
|
|
#20231 - 2002-04-19 05:43 PM
Re: KIXtart Script Debugger/Tester
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I suppose you're right.. I haven't seen those or had a chance to use them before. I'm still learning about what is available at the moment.
Perhaps, I'm just looking for a project to take up some of my spare time. Currently, I'm waiting on other people's projects and management to implement my own projects.
Brian
|
Top
|
|
|
|
#20232 - 2002-04-20 09:33 PM
Re: KIXtart Script Debugger/Tester
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear BrianTX,
For the "new" members we repeat pointing to those tools. For kixstrip and kixref we are published three different versions, which has to deal with different keyword tables.
Recently we have extend kixref with the possibility to search for "spelling errors" in names. You can use the /warnings to use this new function. greetings.
btw: symbol on our homepage has been linked to related http://kixtart.org topic.
|
Top
|
|
|
|
#20233 - 2002-04-21 04:12 AM
Re: KIXtart Script Debugger/Tester
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
BrainTX,
This was the reasoning of creating the "new" FAQ Forum to hopefully address some of the most common issues.
With this being said, Les and myself have worked dilligently to keep these the most appropriate and most common answers to questions.
Both Les and myself have solicited for topics to be displayed in the FAQ Forum and have received valuable feeback and have placed these items within. If you have ideas or ideas on how to present topics, we are open to commentary.
Another couple of things.
- The FAQ Forum is "locked down" to help keep topics tidy.
- The FAQ Forum does not have the 10 or x day views, so you see em' all.
HTH, - Kent [ 21 April 2002, 04:14: Message edited by: kdyer ]
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1167 anonymous users online.
|
|
|