[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Debugger for 2.5??
> To Whom It May Concern:
> Could you please tell me if there is a tool available to help with =
> debugging SQR 2.5??? I know there is such a thing for 3.0, but we are =
> currently developing in 2.5 for reasons of revision integrity accross =
> platforms.
> Thanks,
In the past I have written a few simple programs which help
with tracing SQR program execution. I don't have source code,
but you might be able to whip something up yourself pretty
quickly.
The general approach is to write an SQR program which reads a
program and looks for procedure declarations or other "interesting"
statements. The program generates a new version of the source
file which has "DISPLAY" statements or #DEBUG statements added.
I then run the generated program and watch the execution flow
go by.
A slightly enhanced version of the above idea is to have the program
insert a call to a routine which allows more interactive control
of the execution. This approach is left as an exercise for the reader.
Ray
----------------------------------------------------------------------
Ray Ontko | Ray Ontko & Co | "Ask me about SQR and the WEB."
rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/