You need to sign in to do that
Don't have an account?

Debug Output not displaying in Salesforce
I have the following trigger on a user object, but I am not getting any debugging information within the sandobx environment. I have selected my 'Log Category' to be 'Apex Code' and 'Log Level' to be 'Debug'.
Nothing is being displayed? Is there another setting or area where I must view the debug information for the trigger?
Nothing is being displayed? Is there another setting or area where I must view the debug information for the trigger?
Code:
trigger NewUserTrigger on User(before insert, before update, after insert, after update) { Account temp_acc; String TestAcct = 'New User Trigger - do not delete or modify'; //Test Account System.Debug('Starting NewUserTrigger'); try { System.Debug('SKM-NewUserTrigger'); if (Trigger.isBefore) { for (User u : Trigger.new) { System.Debug('Update--SKM-isBefore: ' + u.Full_Name__c ); } } else if (Trigger.isAfter) { for (User u : Trigger.new) { System.Debug('Update--SKM-isAfter ' + u.Full_Name__c ); } } } finally { } }
are you using the system log to view the debug information or Eclipse?
The isActive checkbox was not checked, but what would of caused it to be unchecked? It was checked and I didn't uncheck it! I mostly try to test via the sandbox, but write the code in Eclipse.
if this occurs once i would call it a fluke,
if it occurs each time you save the trigger from eclipse, please report this as a bug, include details about which rev of eclipse you are running.
thanks
Message Edited by TehNrd on 02-22-2008 10:34 PM
I am having a similar problem... My debug statements do not get displayed, but the trigger is active.
I discovered the only way I get debug messages is when I get an exception... Let me show you what I mean.
This code does not display any messages (related to the trigger) in the log window:
On the other hand, when I change the code to this:
I get a whole bunch of messages in the log window:
When using Eclipse to do edits to my triggers, I have noticed that sometimes I don't get system.debug output in the system log window. What I have done to fix it is refresh the classes from the server in Eclipse and then the system.debug messages start to display.
An example is I went into Salesforce and changed the API version of my class from 11.1, to 16.0 and then my system.debug messages stopped appearing. I then when into Eclipse and refreshed the Class from the server and the system.debug messages started appearing. Hopefully, this will help others who run into this situation.