0

I don't see my System.debug() comments in my debugger. I need these to return a response to an API callout response from Marketo. For example,

System.debug(res2.getBody());

When I test the code using @isTest in the developer console, these messages appear, but when I try to use the actual deployed code, none of these statements appear, even though I have set all logs to finest.

I am using a developer edition of Salesforce, if that makes any difference.

  • Is it a managed package, but not the packaging org? – Ashwani Sep 10 '15 at 17:55
  • I believe it is an unmanaged package – MRG Sep 10 '15 at 18:02
  • Did you try something like that: System.debug(' @@@@ '+res2.getBody()); to check if debugs are not printing or the body is empty? – Ashwani Sep 10 '15 at 18:04
  • Yes. Additionally, I have System.debug('debug working'); towards the beginning of my code for just this purpose. This is not printing either. – MRG Sep 10 '15 at 18:12
  • Try this also: system.debug(LoggingLevel.DEBUG,'where are you hidden'); make sure filter not set to none – Ashwani Sep 10 '15 at 18:16
0

To me it sounds like you have turned down the debug log level. Maybe you need to turn up the debug log level.

Personally, I prefer to work with the developer console which seems to usually resolve a lot of these kinds of issues. See this article about using the developer console with debug logs.

0

I could be wrong, but I thought I had turned the log level up to its maximum settings. Here is what the debugger is logging:

34.0 APEX_CODE,FINEST;APEX_PROFILING,FINEST;CALLOUT,FINEST;DB,FINEST;SYSTEM,FINEST;VALIDATION,FINEST;VISUALFORCE,FINEST;WORKFLOW,FINEST
11:25:01.146 (146598277)|PUSH_TRACE_FLAGS|[EXTERNAL]|01q1a0000005zYT|MarketoAPIDemo|APEX_CODE,FINEST;APEX_PROFILING,FINEST;CALLOUT,FINEST;DB,FINEST;SYSTEM,FINEST;VALIDATION,FINEST;VISUALFORCE,INFO;WORKFLOW,FINEST
11:25:01.146 (146686994)|EXECUTION_STARTED
11:25:01.146 (146694116)|CODE_UNIT_STARTED|[EXTERNAL]|01q1a0000005zYT|MarketoAPIDemo on Zipcode trigger event AfterDelete for [a021a00000216Fu]
11:25:01.146 (146803445)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
11:25:01.147 (147415345)|HEAP_ALLOCATE|[72]|Bytes:3
11:25:01.147 (147536123)|HEAP_ALLOCATE|[77]|Bytes:152
11:25:01.147 (147653494)|HEAP_ALLOCATE|[342]|Bytes:408
11:25:01.147 (147704999)|HEAP_ALLOCATE|[355]|Bytes:408
11:25:01.147 (147741818)|HEAP_ALLOCATE|[467]|Bytes:48
11:25:01.147 (147791949)|HEAP_ALLOCATE|[139]|Bytes:6
11:25:01.147 (147839099)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
11:25:01.147 (147864344)|VARIABLE_SCOPE_BEGIN|[1]|this|MarketoAPIDemo|true|false
11:25:01.147 (147929917)|VARIABLE_ASSIGNMENT|[1]|this|{}|0x4d556d90
11:25:01.147 (147994802)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
11:25:01.148 (148011190)|VARIABLE_SCOPE_BEGIN|[1]|this|MarketoAPIDemo|true|false
11:25:01.148 (148033001)|VARIABLE_ASSIGNMENT|[1]|this|{}|0x4d556d90
11:25:01.148 (148043608)|STATEMENT_EXECUTE|[1]
11:25:01.148 (148068778)|CUMULATIVE_LIMIT_USAGE
11:25:01.148 (148068778)|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 0 out of 100
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

11:25:01.148 (148068778)|TOTAL_EMAIL_RECIPIENTS_QUEUED|0
11:25:01.148 (148068778)|STATIC_VARIABLE_LIST|
  int:BYTES:0
  char[]:DigitTens:0
  int:MIN_EXPONENT:0
  char[]:DigitOnes:0
  int:SIZE:0
  double:NaN:0
  double:MIN_NORMAL:0
  int:MAX_VALUE:0
  int:MAX_EXPONENT:0
  int:MIN_VALUE:0
  double:POSITIVE_INFINITY:0
  double:NEGATIVE_INFINITY:0
  long:serialVersionUID:0
  double:MIN_VALUE:0
  long:serialVersionUID:0
  int[]:sizeTable:0
  double:MAX_VALUE:0
  int:SIZE:0
  char[]:digits:0
  int:BYTES:0

11:25:01.148 (148068778)|CUMULATIVE_LIMIT_USAGE_END

11:25:01.148 (148271644)|CODE_UNIT_FINISHED|MarketoAPIDemo on Zipcode trigger event AfterDelete for [a021a00000216Fu]
11:25:01.149 (149315980)|EXECUTION_FINISHED
11:25:01.150 (150477088)|POP_TRACE_FLAGS|[EXTERNAL]|01q1a0000005zYT|MarketoAPIDemo|
11:25:01.158 (158734300)|CUMULATIVE_PROFILING_BEGIN
11:25:01.158 (158734300)|CUMULATIVE_PROFILING|No profiling information for SOQL operations
11:25:01.158 (158734300)|CUMULATIVE_PROFILING|No profiling information for SOSL operations
11:25:01.158 (158734300)|CUMULATIVE_PROFILING|No profiling information for DML operations
11:25:01.158 (158734300)|CUMULATIVE_PROFILING|method invocations|
External entry point: public void invoke(): executed 1 time in 0 ms

11:25:01.158 (158734300)|CUMULATIVE_PROFILING_END

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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