How to Enable Debug in the iOS/iPad print provider

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

Main.HowToEnableDebugInTheIOSProvider History

Hide minor edits - Show changes to output

July 05, 2018, at 11:54 PM by Aaron Pouliot - Added category iOSPrint
Changed line 54 from:
''Categories:'' [[Category.Debugging|+]],
to:
''Categories:'' [[Category.Debugging|+]], [[Category.iOSPrint|+]]
April 30, 2018, at 06:46 PM by Aaron Pouliot - Added info blurb at the top suggesting Mobility Print instead
Added lines 2-5:

----
''Please note that this information pertains to an older PaperCut BYOD printing solution called [[https://www.papercut.com/products/ng/manual/applicationserver/topics/mobile-mac-iosprinting.html|iOS Print]] which will only work on [=MacOS=] PaperCut servers. However we recommend a newer solution called [[https://www.papercut.com/products/mobility-print/|Mobility Print]] which is much more versatile and robust. It also can be installed on any type of PaperCut server and enable BYOD printing for a broader variety of devices.''
----
Added lines 7-8:
Editing this file will require either 'sudo' or 'root' level access.
Changed lines 44-45 from:
You can then review the logs here: [@/Applications/PaperCut\ NG/providers/iosprint/mac/pc-iosprint.log@]
to:
You can then review the logs here: [@/Applications/PaperCut NG/providers/iosprint/mac/pc-iosprint.log@]
Changed lines 5-6 from:
Please note that you will may need to take into account the product you are using. The examples given in this article are for PaperCut NG.
to:
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.
September 14, 2012, at 05:19 AM by ian - Changed product name to NG, added note that changes may be required for other products (MF).
Added lines 5-6:
Please note that you will may need to take into account the product you are using. The examples given in this article are for PaperCut NG.
Changed line 23 from:
       <string>/Applications/PaperCut MF/providers/iosprint/mac/pc-iosprint</string>
to:
       <string>/Applications/PaperCut NG/providers/iosprint/mac/pc-iosprint</string>
Changed line 26 from:
   <string>/Applications/PaperCut MF/providers/iosprint/mac/pc-iosprint.log</string>
to:
   <string>/Applications/PaperCut NG/providers/iosprint/mac/pc-iosprint.log</string>
Changed line 28 from:
   <string>PaperCut MF iOS Print</string>
to:
   <string>PaperCut NG iOS Print</string>
Changed line 35 from:
       <string>/Applications/PaperCut MF/providers/iosprint/mac/pc-iosprint</string>
to:
       <string>/Applications/PaperCut NG/providers/iosprint/mac/pc-iosprint</string>
Changed lines 44-45 from:
You can then review the logs here: [@/Applications/PaperCut\ MF/providers/iosprint/mac/pc-iosprint.log@]
to:
You can then review the logs here: [@/Applications/PaperCut\ NG/providers/iosprint/mac/pc-iosprint.log@]
Changed lines 1-2 from:
(:title How To Enable Debug In The IOS Provider:)
to:
(:title How to Enable Debug in the iOS/iPad print provider:)
Added lines 1-48:
(:title How To Enable Debug In The IOS 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.

!!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 MF/providers/iosprint/mac/pc-iosprint</string>
    </array>
    <key>StandardErrorPath</key>
    <string>/Applications/PaperCut MF/providers/iosprint/mac/pc-iosprint.log</string>
    <key>ServiceDescription</key>
    <string>PaperCut MF iOS Print</string>
  </dict>
</plist>@]

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

[@    <array>
        <string>/Applications/PaperCut MF/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\ MF/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:'' [[Category.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 July 05, 2018, at 11:54 PM
Printable View   |   Article History   |   Edit Article