+ Start a Discussion
JWikkJWikk 

Debug statements in deployed managed apex classes

When we install our managed code in our client environment the system.debug statements are no longer visible. Is there a way to find out how the code is doing in the installed environment? Normally, code is not visible in the install environment but we would like to have the occasional debug line showing so we can see what data is causing our classes to fail. We heard assertions show, but is that only when evaluate to false?

 

Ideas?

Mike@COLMike@COL

The debug statements for managed code don't show up in the logs. The only way I know to work around it is to create your own logging object and write records into it. This is a total performance killer, but you can write the logging functions so they can be toggled on/off with a custom setting. Good luck!