Retrieve window name while in use

Retrieve window name while in use

Retrieve window name while in use

I need to retrieve the name of a running window using helps or hotkeys just to know where to go in case of correcting errors...
I know that the name is stored in some global variable but I don't know its name and how to get it's content...
Can anyone help? Please?