HI JIm, You mentioned created a c program to get the line number how would 
you go about doing this?
Better still has someone created this.
What I am after is somthing similar to what java provides called LOG4J so 
LOG4JBASE :) would be great!
This saves alot of time in debugging a program that is running on a live 
system.

On Thursday, 27 September 2007 00:13:11 UTC+10, Jim Idle wrote:

> The runtime will record the line number (though some optimizations might 
> make this not quite accurate), but there is nothing in BASIC that allows you 
> to access this directly. What you will need to do is look at the macro that 
> is generated in the C code, where you will see it accepts a numeric file 
> naumber (the compiler constructs a table of all the files involved in the 
> compile) and a numeric line number. THen you can write small C functions to 
> give you back the file name as a string and the line number as an integer.
>  
>  
> Jim
>
>
>
> ------------------------------
>
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: programatically capture debug line # question
> > Date: Mon, 24 Sep 2007 19:17:49 -0700
> > 
> > 
> > Since there were no responses to this post, does it mean that querying
> > the line number from the debugger isn't readily available?
> > 
> > 
> > Thanks,
> > William
> > 
> > On Sep 17, 4:34 pm, William <[email protected]> wrote:
> > > Is it possible to capture the actual line number of where the running
> > > program is (based on the debugging info)?
> > >
> > > ... -->CT BPS WFT6
> > >
> > > WFT6
> > > 001 LINE= 0
> > > 002 * Magically set line
> > > 003 CRT "This is line is ": LINE
> > >
> > > ... -->
> > >
> > > HP-UX running 3.4.10.
> > >
> > > TIA,
> > > William
> > 
> > 
> > 
>

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to