Display of Programatic Config

I am creating a programatic config. Is there any way to display config created as XML record or save as XML configuration or other way to debug.

Best Answer