Helmut Eller wrote:
Bjørn Nordbø bn@telenor.net writes:
How do I set a breakpoint for SLDB in a source fragment (ie. what do I use instead of break)?
You could use INVOKE-DEBUGGER, which hopefully doesn't rebind the debugger hook :-). Alternatively you can add a method to ENV-INTERNALS:ENVIRONMENT-DISPLAY-NOTIFIER. E.g. you could add
Another solution, I found, was to call (SWANK::SIMPLE-BREAK). As it is only used for debugging, I probably won't be condemned to heck for doing this..
However, I noticed your patch in the ChangeLog and now BREAK does what I want. Thank you very much! :-)
(defmethod env-internals:environment-display-notifier (env &key restarts condition) (swank::swank-debugger-hook condition nil))
to your ~/.swank.lisp. I added something like this in the CVS version. It is also possible to override the Lispworks window debugger by specializing the env argument.
That is probably cool, but I wouldn't know as I have never used the Lispworks GUI environment.
Bjørn
Bjørn Nordbø bn@telenor.net writes:
That is probably cool, but I wouldn't know as I have never used the Lispworks GUI environment.
It's great! It turns simple multithreading bugs into denial-of-service attacks against your window manager..
Luke Gorrie wrote:
Bjørn Nordbø bn@telenor.net writes:
That is probably cool, but I wouldn't know as I have never used the Lispworks GUI environment.
It's great! It turns simple multithreading bugs into denial-of-service attacks against your window manager..
Seems like something that could ruin a perfectly good day when telecommuting with a 128 kbps uplink. :-)
By the way, I needed to use SLIME with a legacy app running on Lispworks 4.1 today, and hacked in support for this version. It seems to be working ok, except for a lot of complaints about redefining NO-APPLICABLE-METHOD on startup that I haven't figured out yet. Anyway, I have attached a patch if this is of any interest.
And please tell me if this is the improper way of submitting a patch, if its format is wrong, if I am missing something or whatever; this my first patch in years. :-)
Bjørn Nordbø bn@telenor.net writes:
By the way, I needed to use SLIME with a legacy app running on Lispworks 4.1 today, and hacked in support for this version. It seems to be working ok, except for a lot of complaints about redefining NO-APPLICABLE-METHOD on startup that I haven't figured out yet. Anyway, I have attached a patch if this is of any interest.
I installed your patch. Thanks.
And please tell me if this is the improper way of submitting a patch, if its format is wrong, if I am missing something or whatever; this my first patch in years. :-)
The format is fine. You can also include the ChangeLog entry if you like.
Helmut.