Debug Subscriber Orgs
Get Access to Debug Logs
You can debug your code by generating Apex debug logs that contain the output from your managed package. Using this log information, you can troubleshoot issues that are specific to that subscriber.
To get access to a subscriber’s Apex debug logs, you can either request login access from the subscriber, or use the License Management App (LMA) to enable debug logs for a namespace.
Follow these steps to enable debug logs for a namespace through the LMA.
- In the LMA, click the Subscribers tab.
- Search for the subscriber’s name or org ID, then click the name of the subscriber org.
- In the Packages & Licensing section, find the package that you want to troubleshoot.
- In the Subscriber Debug Logs column, click Enable.
- Review the confirmation message, then click OK.
After you enable debug logs, the logs from Apex code execution remain visible to the subscriber org until you disable debug logs. To disable debug logs, follow the same steps in the LMA.
Troubleshoot with Debug Logs
After you get access to a subscriber’s debug logs or you enable debug logs for a namespace, get debug logs from the Developer Console.
- From Setup of the subscriber’s org, in the Quick Find box, enter Debug Logs, and then select Debug Logs.
- Launch the Developer Console.
- Perform the operation, and view the debug log with your output.
Subscribers can see the debug logs you generate, and these logs contain your unobfuscated Apex code.
You can also view and edit data contained in protected custom settings from your managed packages when logged in as a user.
Troubleshoot with the ISV Debugger
Each License Management Org can use one free ISV Customer Debugger session at a time. The ISV Customer Debugger is part of the Salesforce Extensions for Visual Studio Code. You can use the ISV Customer Debugger only in sandbox orgs, so you can initiate debugging sessions only from a customer’s sandbox.
For details, see the ISV Customer Debugger documentation.