Hot answers tagged feature
In order to make ULS logging work for a AppPool account that is not Administrator you have to add your AppPool user to "Performance Log Users" group. And restart the Application Pool that is using this AppPool account.
You really shouldn't be debugging in production. Instead, add additional logging capabilities to your app and do more defensive coding. By defensive coding, I mean that if your code is calling some method to get an object, check to see if you got the object before doing anything with it.
Only top voted, non community-wiki answers of a minimum length are eligible