<br>   Yes, check the PackageBuilderConfiguration class for the method setDumpDir(). Please note that drools generates and compile files in memory, so after you stop debugging, remember to turn this option off again to not consume unnecessary IO time.<br>
<br>   Also, the java code is usually not much helpful. Best to use the loggers as suggested by Ingomar.<br><br>  []s<br>  Edson<br><br><div class="gmail_quote">2009/6/8 Malenfant, Andre <span dir="ltr">&lt;<a href="mailto:andre.malenfant@cgi.com">andre.malenfant@cgi.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is it possible to see the generated Java code for the rules?<br>
<div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of Ingomar Otter<br>

Sent: Monday, June 08, 2009 12:00 PM<br>
To: Rules Users List<br>
Subject: Re: [rules-users] Templates / Generated rules debugging<br>
<br>
<br>
 &gt;-          Since this is a web application, I cannot debug the rules<br>
in Eclipse (unless I am missing something)<br>
You are missing something. :-) That&#39;s possible.<br>
<br>
However we have found regular debuggers &quot;not to helpful&quot;.<br>
Have a look at the WorkingMemoryLoggers, they can give you a detailed<br>
insight of what&#39;s going on inside Drools, ie.<br>
* Facts inserted, changed, retracted<br>
* Activations<br>
* Rules fired<br>
<br>
4.0.7: <a href="http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/apidocs/org/drools/audit/WorkingMemoryFileLogger.html" target="_blank">http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/apidocs/org/drools/audit/WorkingMemoryFileLogger.html</a><br>

(The Drools Eclipse Plugin can be used to view these logs).<br>
<br>
To be useful, this requires a usable toString, we have created those<br>
using apache commmons-lang.<br>
<br>
Happy hunting!<br>
<br>
  -- Ingomar<br>
<br>
<br>
<br>
Am 08.06.2009 um 17:46 schrieb Malenfant, Andre:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Can some of your share your technique for debugging/troubleshooting<br>
&gt; rules:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Here is the situation:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -          I have a web application that uses rules at specific<br>
&gt; points.<br>
&gt;<br>
&gt; -          I use templates and decision tables so the actual rules<br>
&gt; are compiled by my application using a spread sheet compiler.<br>
&gt;<br>
&gt; -          Since this is a web application, I cannot debug the rules<br>
&gt; in Eclipse (unless I am missing something)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I must not be the only one asking this question but I cannot find<br>
&gt; answers in the archives.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; André Malenfant<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>