You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it seems that invoke-debugger is a function being the sole entry point into toplevel debugger. Redefining invoke-debugger should be a simple way to allow any debugger, including a GUI one. Which kind of makes this library useless, because we can set Nyxt-internal (not internal really, it's image-global) invoke-debugger to invoke GUI. Will be much cleaner too, I believe...
CC @Shinmera (because I remember you expressing the need in custom debuggers, tell me if that's not relevant anymore.)
The text was updated successfully, but these errors were encountered:
But the problem with both trivial-custom-debugger and ndebug here is that both rely on *debugger-hook* and implementation-specific debugger hooks, which are often too restrictive to make custom debuggers. So there are nasty hacks to make it work.
While invoke-debugger is the ultimate resort for custom debugger, because there are only three requirements for it:
Debugger hooks are already exhausted (easy—bind them to NIL).
It accepts a single argument—the condition to debug (easy—it happens automatically, because invoke-debugger is mostly called by Lisp image).
It should not return normally—only via restarts.
Nothing about *query-io* (which is required for *debugger-hook*) etc. So it's absolutely friendly to GUI or any other alternative debugging approach imaginable.
I don't really know what I would want here, so I'm kinda lost on this.
Well, now you know that if debugger hooks are not enough or are clumsy to use, just bind them to NIL and rebind invoke-debugger to something you want :)
So it seems that
invoke-debugger
is a function being the sole entry point into toplevel debugger. Redefininginvoke-debugger
should be a simple way to allow any debugger, including a GUI one. Which kind of makes this library useless, because we can set Nyxt-internal (not internal really, it's image-global)invoke-debugger
to invoke GUI. Will be much cleaner too, I believe...CC @Shinmera (because I remember you expressing the need in custom debuggers, tell me if that's not relevant anymore.)
The text was updated successfully, but these errors were encountered: