Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitk1609
Master
Master

Detect Debug mode in script

Hi Techies,

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.

 

Thanks,

Rohit

Labels (1)
1 Solution

Accepted Solutions
JordyWegman
Partner - Master
Partner - Master

Hi,

Yes, subroutines and activate them will calls. 

Jordy

Climber

Work smarter, not harder

View solution in original post

6 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Rohitk,

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.

Jordy

Climber

Work smarter, not harder
rohitk1609
Master
Master
Author

set subs you are talking about sub routines ?
JordyWegman
Partner - Master
Partner - Master

Hi,

Yes, subroutines and activate them will calls. 

Jordy

Climber

Work smarter, not harder
EeroS
Contributor II
Contributor II

  • You can use Qlik manuals like "QlikView 11 for Developers" -By Garcia M., Harmsen B. to debug.
  • See chapter 7, page 247 to start DEBUG process in many distinct ways.
  • You can find script information too easily in this GREAT manual !

 

Cheers, Have a Great Labour Day, Glada Vapen !

 

Finnish Bears.

 

SE
rohitk1609
Master
Master
Author

My only question is, can we detect that execution of script is in debug mode or not ? I want to put a condition on debug mode execution. Is it possible?
EeroS
Contributor II
Contributor II

Hello ! As to my understanding you cant "debug on the Fly". Agreed with Climber expert above. Cheers, Finnish Bears.

SE