Skip to main content
10-Marble
Jan 28, 2026 12:38 AM UTC
Solved

How to output debugging information from Styler 8.3.1

Hi,

 

I used to use Perl in APP-over-rides to output debugging information to a file like this:

 

  formatting.evaluateShowString("\"junk\"$^[perl open(TMP, '>>c:/temp/debug.log'); print TMP 'specific-use: " + currentNode.getAttribute("specific-use") + "\n'; close(TMP);]");

 

This appears to no longer be working. But was pretty "hacky" anyways. Is there a cleaner way of outputting debugging information to a file or log somewhere?

 

Thanks,

Richard Steadman

10-Marble
Jan 28, 2026 8:59 PM UTC

Ok, I sorted it out.

This particular help page shows how to create external log files (or even write to the Styler Event log):

https://support.ptc.com/help/arbortext/r8.3.1.0/en/index.html#page/styler/appintrostyle/help20078.html#

 

Quick summary:

 

var log = application.logs[5];
log.open(1, "C:/temp/styler.log");

log.write("Attribute" + currentNode.getAttribute("test") + "\n");

log.close();

var eventLog = application.logs[1];
eventLog.write("test");

 

3 replies

bfriesen
18-Opal
Jan 28, 2026 2:43 PM UTC

Hello Richard, FYI Perl support was removed from Editor a few versions ago.

 

Bryon

Translate
10-Marble
Jan 28, 2026 5:15 PM UTC

Hi Bryon,

 

Thanks! My understanding was that it was no longer included by default, but you could add it back in (which we did).

 

Regards,

Richard

 

Translate
RichardSteadman10-MarbleAuthorAnswer
10-Marble
Jan 28, 2026 8:59 PM UTC

Ok, I sorted it out.

This particular help page shows how to create external log files (or even write to the Styler Event log):

https://support.ptc.com/help/arbortext/r8.3.1.0/en/index.html#page/styler/appintrostyle/help20078.html#

 

Quick summary:

 

var log = application.logs[5];
log.open(1, "C:/temp/styler.log");

log.write("Attribute" + currentNode.getAttribute("test") + "\n");

log.close();

var eventLog = application.logs[1];
eventLog.write("test");

 

Translate