Restriction:
Debug on demand is available only on Windows. It is only available for local debugging.
Debug on demand enables you to open a debugging session whenever an unhandled exception or other unrecoverable error occurs in your application.
To enable debug on demand, enter idod idebug at a command line prompt.
To disable debug on demand, enter idod /u at a command line prompt.