[kepler-dev] debuging in actor development

Dan Higgins higgins at nceas.ucsb.edu
Wed Aug 29 09:49:41 PDT 2007


Hi All,
    Actually, the 'Listen to Actor' menu has been removed from Kepler. 
(I am not at all sure why!)

    You can always debug with simple 'System.out.println(...)' 
statements in the actor code. Results appear in the command prompt 
window used to launch Kepler. Kepler uses log4j in many of its actors. 
Check the Kepler wiki and search for 'log4j' for details.

Dan

Edward A. Lee wrote:
> Sure, if you look in many of the actors, they have lines like:
>
>    if (_debugging) {
>       _debug("My debug message here.");
>    }
>
> Then you can right click on the actor and select "Listen to Actor"
> (at least in Ptolemy II... I assume the menu option is available in Kepler).
>
> Edward
>
> At 12:00 AM 8/29/2007, [BE] Ufuk Utku Turuncoglu wrote:
>   
>> Hi,
>>
>> I just wonder that is it possible to redirect the print statement to an 
>> display (such as to "Listen Director"). I mean, i need to put some print 
>> statement into my code to see the results of key variables. When i run 
>> the workflow using java interface i could not see the output of the 
>> print statement. What kind of debuging options exist in kepler?
>>
>> Best wishes
>>
>> Ufuk Utku Turuncoglu
>> ITU, HPC
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at ecoinformatics.org
>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>>     
>
> ------------ 
> Edward A. Lee
> Chair of EECS and Robert S. Pepper Distinguished Professor
> 231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
> phone: 510-642-0253, fax: 510-642-2845
> eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal  
>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
>
>   


-- 
*******************************************************************
Dan Higgins                                  higgins at nceas.ucsb.edu
http://www.nceas.ucsb.edu/    Ph: 805-893-5127
National Center for Ecological Analysis and Synthesis (NCEAS) Marine Science Building - Room 3405
Santa Barbara, CA 93195
*******************************************************************



More information about the Kepler-dev mailing list