trivial-debug-console
2015-04-07
A library to provide a well-behaved debug console.
Upstream URL
Author
Matthew Stickney <mtstickney@gmail.com>
License
MIT
1About
trivial-debug-console
is a tiny little library to make writing GUIapplications in Common Lisp easier on Windows. The free lispimplementations like SBCL and CLISP produce "text-mode" executableimages on windows, which means they pop up a console window whenrun. You could create a launcher to hide the window, but then youcouldn't do any debugging in the image.trivial-debug-console
lets you wrap a function such that the
console window will be un-hidden whenever the debugger is entered,
and re-hidden after the condition has been handled. You get the
console window for just as long as you need it, then it gets out of
your way.
2Usage
There are two ways to usetrivial-debug-console
:(debuggify func &rest args)
will applyfunc
toargs
withthe debug wrapper.(with-debug-console &body body)
will wrapbody
in a lambdaand pass it todebuggify
, to make wrapping a series of actionseasier.
3Notes
- This only works on windows (I'm still thinking about how to makeit work on X-windows systems).
trivial-debug-console
goes to lengths to not disrupt normalerror-handling mechanisms.*DEBUGGER-HOOK*
and the regularerror-handling mechanisms should all work normally.