Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
datanibbler
Champion
Champion

Control the speed of the Debugger

Hi,

I have been spending much of last week running my code in Debugging_mode over and over again.

I have noticed that going through the code step-by-step is a good way to identify any issues - but once you have made sure a particular piece of code is all right, then it gets kind of tiring to do that until you get to the point where you want to look close...

This brought up the question: Wouldn't it be possible to conttrol the debugger insofar as the code just runs through up to a certain point and just stops there - without exiting, though - and you take it stepwise from there?

Best regards,

DataNibbler

1 Solution

Accepted Solutions
ThornOfCrowns
Specialist II
Specialist II

The debugger is a bit hit and miss when it comes to setting breakpoints - I normally set a TRACE line in the code and set the breakpoint there, just to be sure.

View solution in original post

6 Replies
ThornOfCrowns
Specialist II
Specialist II

You can set a breakpoint in the debugger which does exactly that.

tresesco
MVP
MVP

Perhaps this:

In the debug mode, click on line number to set 'Break Point'. Click on Run to reach there, and then use Step for detailed view slowly.

Screen Shot 10-20-14 at 04.30 PM.PNG.png

Red dot denotes the breaking point here.

datanibbler
Champion
Champion
Author

Hi,

I just read about that and I tried it. It doesn't yet seem to work though.

I can click there and I get that red dot allright - but when I click on "Run", the script runs right up to the EXIT SCRIPT, not stopping at my breakpoint ...

tresesco
MVP
MVP

Sorry, missed  a part. Try this sequence:

-Set the break piont

-Click once on Step

-Click on Run

ThornOfCrowns
Specialist II
Specialist II

The debugger is a bit hit and miss when it comes to setting breakpoints - I normally set a TRACE line in the code and set the breakpoint there, just to be sure.

datanibbler
Champion
Champion
Author


You're right. On the day when I set a breakpoint, it didn't stop there - never on that day - so I didn't think of removing it. Now, a few days later, it suddenly started working - even without first clicking on "step" - I clicked on "run" and it stopped right there and waited for my input.