Hi jEdit community,
the attached patchset contains a very first implementation of a debugger for beanshell scripts which are executed inside jEdit. Please take a look at following video https://www.youtube.com/watch?v=q0uNJhLXcMU to get a first idea how debugging of beanshell scripts could look like.
Breakpoints are added by statement "Interpreter.BSH_DEBUG = true;". If a script is executed and reaches this kind of statement, the beanshell interpreter stops execution and launches a debug ServerSocket listenening to request by the DebugClient which is also automatically started. The DebugClient is a simple standalone java application which allows to debug the beanshell script. Currently, the features Step Over, Continue and Evaluate Expression (including code completion support for the expression) are supported.
It is only a first implementation and by far not stable enough to be used in a productive environment.
What do you think? Are you interested in the implementation? Should we go a step further and productize this prototype?
With best regards,
Log in to post a comment.