How to Enable Debug in the iOS/iPad print provider

KB Home   |   How to Enable Debug in the iOS/iPad print provider

If you wish to confirm that PaperCut is advertising your previously shared print queues on your Mac OS X print server you can modify the Launch Daemon plist below and review the logs.

Please note that you will need to take into account the product you are using. The examples given in this article are for PaperCut NG.

Editing this file will require either ‘sudo’ or ‘root’ level access.

Launch Daemon plist

Your /Library/LaunchDaemons/papercut-iosprint.plist should be as below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>papercut.pc-iosprint</string>
    <key>OnDemand</key>
    <false/>
    <key>RunAtLoad</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
        <string>/Applications/PaperCut NG/providers/iosprint/mac/pc-iosprint</string>
    </array>
    <key>StandardErrorPath</key>
    <string>/Applications/PaperCut NG/providers/iosprint/mac/pc-iosprint.log</string>
    <key>ServiceDescription</key>
    <string>PaperCut NG iOS Print</string>
  </dict>
</plist>

To enable debugging, simply modify the array to read as this:

    <array>
        <string>/Applications/PaperCut NG/providers/iosprint/mac/pc-iosprint</string>
        <string>-d</string>
    </array>

Once that is done, save the file and reload the daemon. This may need to be done as the root user:

launchctl unload -w /Library/LaunchDaemons/papercut-iosprint.plist
launchctl load -w /Library/LaunchDaemons/papercut-iosprint.plist

You can then review the logs here: /Applications/PaperCut NG/providers/iosprint/mac/pc-iosprint.log

We recommend reverting the debug change above as it will continue to add log entries to that file and the log will grow over time.


Categories: Debugging,


Keywords: debug airprint,

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on May 02, 2013, at 12:57 PM
Printable View   |   Article History   |   Edit Article