Idea Details

Global Count Limit

Last activity 06-08-2018 01:51 AM
michael.schmitt's profile image
11-22-2016 05:01 PM

[Previously submitted in 20016 as DAR 14637887-1: GLOBAL COUNT LIMIT]

 

Let's say we have an application that is in a loop, but we don't know where exactly the loop is occurring.  Assume we have InterTest Batch but not CA Optimizer/Analyzer.

 

Using another debugger (i.e. Not InterTest), I could turn statement frequency counting on and then set a count limit, so that it would break when the statement execution limit was reached. The count limit could be set on a particular statement. InterTest can do this.

 

Or, it could be set globally, which is what I would do to catch the loop. I would simply tell it to stop when ANY statement was executed over 100,000 times, and then let the program go.

 

The problem in InterTest is that count limits are a function of the UNCOND command, which only works on specific statements (unless one of the ALL parameters is used, such as ALL ENTRY).

 

The WHEN command, which allows breakpoints across all statements in one program, doesn't have a COUNT option.

 

What I want to be able to do is:

  1. Set a count limit breakpoint that operates on any statement within a program.
  2. Set a global count limit breakpoint that operates on any statement within any monitored program.


Comments

06-08-2018 01:51 AM

Hello Michael,

 

this is a stimulating idea and looking little bit beyond it gives some chances to expand into a "visual debugger" realm. I would want to formalize the idea and take it a step further. I will need to work on it with the development team.

 

If you have anything to add, please share your thoughts.

 

Thank you, petr

petr.vacula@ca.com