lqml/examples/debug-ui
2025-10-19 11:15:57 +02:00
..
examples/clog-demo revision of example 'debug-ui' 2025-10-19 11:15:57 +02:00
lisp revisions 2025-10-19 00:39:10 +02:00
local-projects revision of example 'debug-ui' 2025-10-19 11:15:57 +02:00
qml revision of example 'debug-ui' 2025-10-19 11:15:57 +02:00
app.asd revision of example 'debug-ui' 2025-10-19 11:15:57 +02:00
readme.md revision of example 'debug-ui' 2025-10-19 11:15:57 +02:00

Info

This is a debug dialog (taken from example cl-repl) to be integrated in your app.

So, if you merge this example with your app, the mobile app will not crash on an eventual runtime error: an interactive debug dialog will be shown instead.

This is especially helpful on android, where Lisp issues are hard to debug once the app is installed.

Prepare

  • extract local-projects/lqml-debug.tgz under ~/quicklisp/local-projects/
  • add lqml-debug as your very first dependency in your app.asd
  • modify your main.qml as can be seen in examples/
  • comment out evtl. present eval.lisp (needed for repl) and Ext.Repl {}

Important note

You can't have both this debug-ui and the simple repl (Repl.qml) in the same app, because Repl.qml depends on eval.lisp which would replace the stream/buffer setup of debug-ui.