Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an action method in a VisualForce page.

<apex:page standardController="Query__c"
    title="Query Edit"

In the Builder extension I have the method:

public void giveMeHi(){
            System.debug('dragon army');

I can't tell if that method is getting called since my system.debug calls are not appearing in the logs. I have used the Developer Console, I have downloaded the logs directly.

share|improve this question
is your apex logging at INFO or higher? -- then the debug line won't appear. – cropredy Jul 22 '14 at 23:05
up vote 7 down vote accepted

As @crop1645 commented, if the Apex Code logging level is set to high on the general trace settings or on the Builder class the log message won't appear. By default System.debug will log at the Debug level.

In the Developer Console, check your Apex Code Log Levels are Debug or lower. Check Both the General Trace Settings for User and for any Class specific traces for Builder.

enter image description here

enter image description here

You could try using a higher logging level:

System.debug(LoggingLevel.Error, 'Rabbit Army');

Or really prove it is being called by making a failing assertion:

System.assert(false, 'Bean!');
share|improve this answer
Logging level error is the only level I use when I absolutely need to see a debug entry. The assertion trick is also incredibly handy. – sfdcfox Jul 23 '14 at 0:09
+1 for the assertion trick. – Joshua Dance Jul 28 '14 at 20:24
And +1 for catching the Ender's game reference. :) – Joshua Dance Sep 26 '14 at 16:53
@JoshuaDance I always thought Bean was a more interesting character. :) – Daniel Ballinger Sep 27 '14 at 8:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.