How to debug a popup window in SAP?

Have you ever tried to switch on the debugger in a popup window? We cant use /H in the command field in this case. But there is a work around for this problem.

Switch to other SAP session.

Debug-popup-1

Click on generate a shortcut icon on the standard toolbar.

Debug-popup-2

In the popup screen enter the title for the shortcut, Type as System Command, Command as /H and location to store the shortcut and press Finish.

Debug-popup-3

This will create the shortcut on the specified location i.e Desktop in this case.

Debug-popup-4

Find the shortcut on the desktop, drag and drop this shortcut on the popup to start the debugger.