Debugging is Force.com's way of printing the specified message, in string format, to the execution debug log with the specified log level. Called using System.debug which takes either single parameter of message or two parameters of message and log level.

learn more… | top users | synonyms

4
votes
1answer
30 views

Debug logs in abstract parent class not showing

I have some inheritance going in in classes and I need to know what is going on in the parent code. For some reason, I can get debugs from the child class but not the parent. Child class: public ...
2
votes
1answer
75 views

System.debug not appearing in logs from test method

I have the below test method : static testmethod void addToShoppingCart_Test(){ //Line 128 setup(); //Line 129 oppObj.pricebook2id = customPb1.Id; //Line 130 upsert oppObj; //Line 131 ...
1
vote
1answer
20 views

Can't see user_debug from trigger handler when running unit test

Got a system.debug() inside a trigger handler. When running test class, nothing is output to log. Works when trying the same in UI. What could be the problem? Checked my test class overrides to no ...
0
votes
1answer
26 views

APEX callout: job says complete however no update on our server with no debug log

I was testing out a new APEX callout where whenever an opportunity was won, it would call out to our application. I was able to get the job to complete, however I am not seeing the update take ...
0
votes
2answers
44 views

System.debug is not displaying output

I am unable to print the message in the with System.debug; I given as System.debug('Hello SFDC');
3
votes
2answers
46 views

Using Debug Logs Efficiently for Tracking Errors

A general question. We all put some System.debug() statements in our controllers for error handling, for info messages, etc. But there are plenty of logs in the system. When some exception throws, ...
0
votes
2answers
34 views

Debug log getting truncated [duplicate]

Since there are so many classes and methods called from my class method, the debug log generated is very huge and getting truncated. How can i see the full debug log ? Is there a way through which i ...
16
votes
1answer
413 views

Force.com IDE Debugger. New feature?

Saw this as I was installing eclipse earlier. Anyone know how to tinker around with it?
1
vote
2answers
28 views

How to access this transaction's debug log from a trigger?

"Developer script exception" emails that are sent to developers for unhandled exceptions sometimes include full debug log. How can I access this debug log from a trigger so that I can email it to ...
3
votes
1answer
56 views

Debug URLFOR parameter

Users in a certain profile (in production) cannot see a new Visualforce page (or rather, a component within the Visualforce page) I've added to the Opportunity layout. The error is Content cannot ...
9
votes
7answers
275 views

Develop Console Code Coverage Issues (Winter 15' Release) - Production vs. All Test

Wondering if this is a bug or there is something about CC that just doesn't make sense to me. Below is screenshot after screenshot of example of red-lined code coverage that makes no sense. ...
9
votes
1answer
91 views

Does anyone understand Debug Filtering?

I am spending entirely too much time trying to figure out how to surface debug statements instead of debugging my actual code and I wanted to see if anyone out there has come up with a fool-proof ...
0
votes
0answers
11 views

Should I be able to see details of a managed package installed in my org in the debug log?

Lets say I have installed a managed package from app exchange in my org, and it is called from code. Can I see profiling information about the app (Number of SOQL statements, dml statements etc.) in ...
1
vote
1answer
23 views

Overnight debugging of a specific user

Anyone find a way to extend the logging capability of the developer console, or perhaps an appexchange app that will allow extended exception logging for overnight batch apex and integrations? Trying ...
0
votes
1answer
22 views

Trouble seeing debugs from Sites VF page controller

I'm trying to see debug statements generated by the custom page controller associated with a Visualforce page, but am having no luck. I see no logs to track. I'm looking for logs in the Dev ...
0
votes
1answer
45 views

Access debug log messages

I can query debug logs via ApexLog object with SOQL, but the result doesn't contain an actual message. How can I access the message? Is it achievable with SOQL or some API?
1
vote
1answer
42 views

Approaches to debug a slow Visualforce page

I appreciate there are some similar existing questions but I am after approaches on how to debug a slow Visualforce page, as in find what specifically could be causing a slow load/action. I don't have ...
8
votes
1answer
92 views

How to best analyze limit problems in the Developer Console

I have a somewhat complex piece of code that runs into Limit Exceptions under some circumstances. The complexity comes from: Code is in manages extension package, the base package itself depends on ...
0
votes
1answer
41 views

How can I troubleshoot my dysfunctional Trigger-Ready Flow?

Currently following the "Calculate Discounts on Opportunities" in the "Cloud Flow Designer Workbook" (starts on page 26.) I'm 99% positive that I've followed all the instructions exactly. But when ...
3
votes
2answers
109 views

debug asynchronous/future processes

I'm trying to debug a the following error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: [] The error occurs when a method is called to create a task when an order ...
6
votes
1answer
197 views

Print/Debug Raw SOAP Request Including Headers with Apex Webservice

Is there any way to print the raw SOAP request for apex webservices? We have a web service that is used by a number of external providers and are putting a proxy in place that will perform some ...
6
votes
1answer
307 views

How to get current method name in apex?

I have a very slow Visualforce page. In order to find out why, I am adding a lot of System.debug() calls to the various methods on the controller to get timestamps etc to see what is so slow. So far ...
3
votes
2answers
198 views

How can I determine why a Visualforce page is slow?

The page in question takes a full minute to load. But only for one client, and I only have access to that clients sandbox. If I was developing normally, I would use the Developer's Console and logs ...
0
votes
2answers
93 views

Read from and write to file or Document

Is there any easy way to read from and write to a file in Salesforce?. I want to store metadata, let's say something like log data of a user, by mimicking the functionality of log4j.
2
votes
2answers
775 views

Disadvantages of the Force.com platform - are these (still) true? [closed]

I'm evaluating pros and cons for building an integration with Salesforce on Force.com platform. This time, I'm curious to what extent are the following points (still) valid, since they were made a ...
3
votes
1answer
389 views

Using Developer Console & Checkpoints to debug w/ unit tests

Is it really possible to use the dev console & checkpoints to effectively debug code via unit tests? It seems like it should be possible, but I've never gotten it to really work for me. Here's ...
2
votes
6answers
166 views

How to show only user debug entries in the Debug Log view?

I am trying to setup filters on the Debug Logs page so that only entries caused by System.debug('foo') in my code show up. Is there a way to do that?
1
vote
1answer
263 views

Debug logging on Salesforce1 mobile app

Salesforce1 app has the option to send the app event log - however all this does is send a log reference key and not the log file itself. Is it possible for developers to access this log or is it ...
8
votes
2answers
1k views

Debugging Apex Code using Checkpoints?

I currently run the Apex code using Anony exec/test class and Check the system debug logs or write system.debug to check the logs. But I feel the need to check line by line debugging of the code, with ...
1
vote
2answers
1k views

Internal Salesforce.com Error MAXIMUM DEBUG LOG SIZE FATAL_ERROR|

Please help, I am not sure what is going on. I have an email service which is processing file attachment. Yesterday it was almost ready to go to production. I just finalized some test cases. Then ...
0
votes
1answer
91 views

Variable does not exist: sfdc.canvas.console while debugging a canvas app. Any suggestions?

I am trying to debug a canvas app and as per the documentation i tried the following code snippet in developer console in execute anonymous window. ...
17
votes
1answer
2k views

How do I start to debug my own Visualforce/JavaScript?

This question is intended to complement How do I start to debug my own Apex code? as sometimes questions are asked here that could most easily sorted out by the questioner using their browser's ...
40
votes
4answers
7k views

How do I start to debug my own Apex code?

Sometimes questions are posted here that would best be answered by helping the questioner learn how to do their own debugging. (Remember that proverb?) I'd like to have something to link to on this ...
1
vote
0answers
81 views

Formulae field is not showing correct value in debug logs as expected.

I have create a formula field with decimal places 1. Formula field return type is currency. If i see its value by querying the data base using developer console i get 15000 but if i put a debug log ...
4
votes
1answer
119 views

Set Collections not displaying duplicate object records in debug log

When a set collection contains objects such as Opportunities, what is used to determine uniqueness when the same Opportunity record is added to the collection a second time? I'm guessing that the ...
6
votes
4answers
1k views

No log for Visualforce errors

I'm having a problem that I think has something to do with recent version because I don't remember having this problem before. Basically, when I have an error in a Visualforce page, I don't see the ...
3
votes
3answers
586 views

I'm unable to see system.debug statements on a trigger

I created a trigger that looks like this: trigger DG_CM_Trigger on CampaignMember (before insert) { System.debug('DG_CM_Trigger - START'); if (Trigger.isBefore && Trigger.isInsert){ ...
2
votes
2answers
142 views

In System Logs what does the false|true mean for Variables

There's a lot I don't understand about the Execution Logs from Salesforce. Maybe some of it is just my limited programming experience (Apex mostly, smattering of Python). I feel like there must be ...
1
vote
1answer
100 views

Track Why/Why Not a workflow triggered

I have a formula based workflow in place that will automatically check several custom fields and then change the stage. I'm wondering if there is a way to see why a particular workflow failed to ...
1
vote
0answers
407 views

Test Class passes in sandbox/production. Fails during deployment

Requesting insights into another questions. I have test class which gives no error/debug log exception when it's ran individually. But the test class runs during the change set deployment, it fails ...
2
votes
1answer
61 views

How to check what action produced debug log?

Seeking for some insights on how to check which operation produced debug log? Is there something within debug log that signifies what generated it? Usually there's in 'Operation' column there's some ...
4
votes
1answer
704 views

Debug log - limit summary is inaccurate

(edited after I've decided to try out sfdcfox's remarks) I'm rewriting a batch job to (among others) make it run faster. I've attached debug log to my user and monitor the job at random intervals ...
0
votes
1answer
275 views

Monitored Users automatically removed from Debug Logs

As everyone probably knows, When I use Debug logs to monitor codes and processes, I have to specify a “Monitored Users”, Which is in this case myself, But after just a few tests I am removed for ...
2
votes
2answers
425 views

Salesforce debug logs in eclipse?

Is there any way to view Salesforce debug logs in eclise ide? I tried to do some preliminary search but couldn't find anything.
2
votes
1answer
2k views

System.debug messages not showing in debug logs

I noticed all of system.debug messages are not showing up on the debug-logs, since past few days. I even added debug msg at first line and the last line in constructor. Surprisingly, it did not ...
4
votes
1answer
359 views

Start ApexLog capture via the API

When the developer console is opened Salesforce will start capturing ApexLog records for the current user. After a period of time this stops occurring and the user needs to click the resume menu ...
6
votes
2answers
63 views

Troubleshooting strategy for code that's not yours

Six months as the ad hoc SFDC dev onsite and counting, I've run into the following issue. Before I came along, Salesforce was set up in concert with a devshop who created a trigger that adds sales ...
2
votes
0answers
69 views

debug log filter only for one user

The account I am using is Secondary Admin. And in Debug Logs, I am getting other user's log [using Salesforce UI]. It is quite annoying as it makes me hard to find my own debug logs. For Monitored ...
4
votes
3answers
490 views

cannot run test on class xxxxx

I have been struggling with this error since two days ago. For certain classes, I cannot run the test and getting error of [cannot run test on class xxxxx]. I followed most the answers like 1) clear ...
2
votes
3answers
3k views

Debug not working?

I have created a class that is related to a form the code does not log public class QuoteMachinesCartController { public String opportunityId{set; get;} public String name{set; get;} public String ...