PTC ALD in Arbortext Styler > Integration of PTC Arbortext Layout Developer in Arbortext Styler > Debugging .style Stylesheets with PTC Arbortext Layout Developerr > Debugging Tools
Debugging Tools
Arbortext Styler provides access to some features which can help stylesheet developers understand the formatting process and make informed decisions about how to update their stylesheets. These tools can be used to debug source edit code:
formatting.write() and formatting.output()
These methods output content onto the page and can be used to display any information. For example, you can use them to display variable values or XPath expression results or to indicate that a certain point in the code has been reached.
This method displays information in a popup alert message rather than taking space up on the page or affecting the formatting process.
Alert messages can be helpful when formatting in Arbortext Styler’s print preview but they should be removed from the stylesheet before publishing.
If errors encountered in a publishing process and a print preview action are different, using PTC ALD’s logs to write information out to an external location can provide insight into the issue causing the errors.
Refer to Logs Generated by PTC Arbortext Layout Developer for information.
Print preview
The PTC ALD Preview Window provides a number of tools, including block and frame guides, a grid, rulers, and the options available on the right mouse shortcut menu.
PTC Arbortext Layout Developer— Desktop
You can save a previewed document from the PTC ALD Preview Window as an PTC ALD file and open it in PTC Arbortext Layout Developer— Desktop for further investigation.