Page 1 of 1

Debugging QualityStage

Posted: Mon Apr 07, 2008 1:08 pm
by mdemerick@dow.com
Is there any way to really debug QuailtyStage? Specifically for the rule sets.

Posted: Mon Apr 07, 2008 3:02 pm
by ray.wurlod
Not easily. You can certainly test Rule Sets independently. You can also include Peek stages (or compile in trace mode) so that you can record what goes into and comes out of the QS stages, but that's about all there is.

Re: Debugging QualityStage

Posted: Mon Apr 07, 2008 5:32 pm
by stuartjvnorton
mdemerick@dow.com wrote:Is there any way to really debug QuailtyStage? Specifically for the rule sets.
You can't step through a ruleset (Wouldn't that be nice! Anyone from IBM listening?), but you can write your own trace code into the ruleset itself. Not hard to do, but pretty time-consuming depending on what you want.
Mine involved creating a new output field that you could append short comments to, and lots of trace within the PAT file, so you could see which patterns got hit in which order, or to check the pattern half way through, etc. Not rocket science, but has been pretty helpful.