If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
I am running a script (manually) in the debug mode. I need to execute or skip a portion of the script in this case. So I need to detect (at the beginning of the script) that it's running in Debug mode.
Qlik Sense doesn't 'know' that it is running in debug mode.
What you could do is set subs in your script and make a page where you can activate/deactivate the calls for the subs specially for the debug mode.
Cheers, Have a Great Labour Day, Glada Vapen !