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,
Tobias
Submitted | d031119 - 2015-10-25 10:57:16.699000 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | pending | Group | |
Resolution | remind |
2016-07-06 04:16:57.906000 ezust |
Very impressive. In terms of design, I would suggest making it into a plugin, and
providing a dockable window instead of a Dialog. Making as few changes to core as
possible.
|
---|---|
2016-07-06 04:53:26.679000 ezust |
Also, please use org.jedit for new classes that are added to Core, rather than the
gjt.sp.jedit package.
|
2016-07-10 20:43:12.012000 ezust |
- **status**: open --> pending-remind |
2016-08-03 12:06:09.979000 d031119 |
A first version is now on github:
|
2016-08-03 13:30:11.433000 daleanson |
For the context menu, do this:
|
2016-08-03 14:12:34.766000 d031119 |
Thanks a lot the DynamicContextMenuService is working like a charm.
|
2016-08-03 14:19:47.207000 d031119 |
here the changes in the jedit core coding I would need to realize the beanshell debugger plugin without the need of using reflection. IBeanShellDebugger.java (313B) jedit_core_bsh_debugger.patch (2.3Kio) |