trivial-debug-console

2015-04-07

A library to provide a well-behaved debug console.

Upstream URL

github.com/mtstickney/trivial-debug-console

Author

Matthew Stickney <mtstickney@gmail.com>

License

MIT
README

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 use trivial-debug-console:
  1. (debuggify func &rest args) will apply func to args withthe debug wrapper.
  2. (with-debug-console &body body) will wrap body in a lambdaand pass it to debuggify, 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.

Dependencies (1)

  • cffi

Dependents (0)

    • GitHub
    • Quicklisp