Re: Debug interface?

Pat <[email protected]>
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
On Fri, Feb 20, 2004 at 01:01:19PM +0200, Philip Mulrane wrote:
> Hi,
> <<newby alert, new to bean shell, newish to Java, experienced (15 years or
> so) C/C++ developer>>
> I've just inherited someone else's project here, and he used beanshell to
> add scripting facilities to our main app. I now have the task of extending
> this, and one requirement is a 'debug mode' to allow debugging of the
> scripts, nothing too fancy, breakpoints, inspect variables, single step
> through code. I have been unable to find any 'hooks' in beanshell for adding
> such facilities, such as found in typical REXX implementations. Do you guys
> have any pointers for me?

I'm afraid there aren't currently any hooks to support those operations.  But
any or all of those things would be easy to add.

The main interpreter loop reads "Line" constructs (ASTs) and executes them.
So you could do arbitrary stuff in that loop.

The namespace which holds variables and methods is pretty well documented.

I'd be happy to help if you want to get involved in adding these features.

Else we will get them done eventually, but I'm not sure when.


thanks,
Pat


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.