cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

printing diagnostic and/or log messages from ACL

MartyRoss
1-Newbie

printing diagnostic and/or log messages from ACL

My first foray into ACL today.


What are some good ways to log diagnostic messages from ACL (i.e., something like a "logger" facility, etc.) - either appending list entries into an open diagnostic window (preferred), or to a log file?


"response" and "message" just don't seem to cut it.


4 REPLIES 4

eval "your debug message" output=>*

Ok, so I found:



  • fid = open("*", "w")

But that means I need to write my own "logger" / infrastructure. Isn't there anything simpler - builtin?



In Reply to Paul Nagai:


eval "your debug message" output=>*


My favorite is:

eval "my debug message" output=*debug

This opens up a message (diagnostic) window (different from an eval
window) and appends messages in this window. Another advantage of using
this is that it does not take focus away from the current window. This
can be nice when debugging where certain things happen on window focus
events.

- Dave H.

Dave Helfinstine
-
Announcements

Top Tags