Skip to content

Debugging

MorquinDevlar edited this page Aug 20, 2026 · 4 revisions

Debugging

Debug Mode

Enable verbose debug output for drag/drop, layout, and dock operations:

mdw.debugMode = true

Diagnostic Tools

-- Print saved layout details to main window
mdw.showLayout()

-- Print current widget state to main window
mdw.showWidgets()

-- The live layout as plain data (docks, rows, groups, floats, hidden widgets)
display(mdw.describeLayout())

Rebuilding a Broken UI

If the UI is ever half-torn - a script-editor save that re-ran MDW's scripts over a live session, say (MDW schedules its own rebuild in that case) - mdw.rebuild() or the gear menu's Rebuild UI tears everything down and builds it fresh, consumer registrations included. mdw.resetLayout() does the same after throwing the saved layout away.

Clone this wiki locally