MDLSpy is a MDL debugging tool. It lets you view MDL structures, including DialogItem, DialogBox, MSElementDescr, etc. Plug your application into MDLSpy to print your own structures.
Download the latest version here.