<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>Hi everyone,<br>
<br>
I've developed a feature to output the compiler-generated node trees into XML files that could prove useful for debugging purposes. While the ability to print the nodes to the console or a log file already exist, it gets buried especially if the System unit has its nodes output (the XML file it generated for me is 4.8 MB in size!).<br>
<br>
<div>I plan to use this to help me debug and analyse code paths for the "pure" feature that's been on my table for a while, and it might help with debugging in general. I figure it's a bit more convenient than a console output because you can open the file afterwards in Notepad++ or some other editor that can handle XML files (which I hope are valid!!) and hence visually open and close branches.<br>
</div><div><br>
</div><div>Note that it is currently very much a work in progress and hasn't been fully tested, and reuses a lot of features like the "printnodeindent" variable and an error message if it fails to access a file.</div><br>
<div>To activate, specify the "-Cm" command line parameter (I wanted either "-Cn" or "-Ci", for 'node' and 'intermediate' respectively, but both are taken!). It's not documented at present, especially as it might be rejected or changed. The XML files have .ppx extensions and are placed in the output directory. Let me know how it works out for you.</div><div><br>
</div><div>Gareth aka. Kit<br>
<br>
(The patch file may be too large and cause this e-mail to be flagged by the moderators)<br>
</div> </HTML>