While you are at it, make a button at the top with "Run to cursor". It is a missing one that requires oneto get the context menu to execute. Annoying. Phil On Tue, Oct 4, 2016 at 4:30 PM, Matteo Marra <gallonba21@gmail.com> wrote:
Hi Andrei,
thank you for your really fast answer!
Cheers, Matteo
2016-10-04 16:20 GMT+02:00 Andrei Chis <chisvasileandrei@gmail.com>:
Hi Matteo,
If you look, for example at RestartDebugAction, there is on the class side a method #gtStackDebuggingActionFor: that has the annotation <gtStackDebuggingAction>.
To attach actions to the stack (proceed, resume, step into) the debugger looks for subclasses of DebugAction that have class side methods annotated with gtStackDebuggingAction.
These methods can optionally receive the debugger instance as an argument. However you can also only have simple methods like 'PeelToFirstDebugAction class>>#gtActionType'
Cheers, Andrei
On Tue, Oct 4, 2016 at 4:10 PM, Matteo Marra <gallonba21@gmail.com> wrote:
Hello,
I'm working on the Pharo debugger, and I wanted to add a button with new functionality just besides the buttons "Proceed" "restart" ...
Is there an easy way to do it? Which is the class that I have to Modify/Extend in order to do that?
I tried to look around the methods and I found where DebugSession is created, but I didn't see any clear reference to the UI or to how is constructed in it.
Thank you in advance, Matteo