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

1
vote
2answers
21 views

What are the time gaps in my Debug Log?

Trying to work out why a data load is taking so long...when I look in the logs, I see a couple of places where there seems to be a long gap between one thing ending, and the next starting e.g. 16:49:...
2
votes
0answers
35 views

Debug Log issues in Winter/Summer '16

Lately we have been noticing issues with the Debug Logs. Missing debug lines Sometimes either CODE_UNIT_STARTED or CODE_UNIT_FINISHED goes missing. For example The log shows when a trigger finished ...
3
votes
1answer
37 views

Logs always showing ENTERING_MANAGED_PKG in dev org

I am developing in a namespaced DE org (not packaged yet) and using standard SFDC_DevConsole debug levels (Apex = Debug, System = Debug, DB = Info) with no trace overrides. But all I see in the logs ...
8
votes
0answers
40 views

Managed Package Providers No longer able to access Debug Logs

I just wanted to double check because we are having trouble seeing debug logs for our extension packages in subscriber orgs. The main package which started it all works fine. I am being told by SF ...
5
votes
1answer
81 views

Bug in Dev Console/Execute Anonymous?

I am trying to do some research, and coming across a stumbling block. Execute Anonymous seems to sometimes hit a statement that breaks all further debugs. system.debug('Statements do appear'); // ...
0
votes
1answer
41 views

apex class trace problem: start date and end date cannot configure

I want to trace an apex class running process then setup as following: click Developer console->debug->change log levels In the section "class and trigger trace overrides", I choose related apex ...
1
vote
0answers
33 views

Debug Logs Explanation

I'm trying to understand the debug logs Salesforce provides. There are actually two duration(in ms) for every webservice called. One at the top One at the bottom giving up split up method wise ...
0
votes
1answer
49 views

How to Debug a flow built in process builder

I have a workflow that generates a task. Based n creating a custom object I have been looking in the logs to make sure it's working. But, now I'm stumped. Does anyone know how to understand this? ...
1
vote
2answers
38 views

Disable salesforce lightning error dialog

Coming from a traditional javascript development world, i'm stumped by how to debug lightning components. Any javascript error is caught by the salesforce handler in aura and shows up in this dialog, ...
5
votes
2answers
82 views

Why have database rows not been inserted when the debug log says they have?

I have code that creates CaseShare records for the case based on some criteria from another class. The code that creates the CaseShare is called both on update and creation of the case. It works ...
0
votes
1answer
42 views

Code Coverage error/Salesforce bug?

Alright, so I think this is a Salesforce bug but wanted to check with the community to see if I'm just overlooking something. I'm trying to debug some code in production so I added a couple of ...
4
votes
2answers
46 views

Console.log truncates my debug `…}`

I'm using developer console log to see all my debug logs but it cuts off my log after 1920 characters How do I fix that? and even I have tried download the log and open in a notepad++ but still I ...
1
vote
3answers
44 views

Debug logs does'nt appear on apex trigger

I am trying to debug below trigger: trigger SendEmailToHiringManger on SFDC_Job_Opening__c (after insert, after update) { list<SFDC_Job_Opening__c> i = [select id,Hiring_Manager__c,Name ...
0
votes
1answer
20 views

View state mode of an inline VF page

I have a visual force page which I have embedded in a custom object page layout. I have the developer mode and view state enabled in my user setting. But when I go to the record where I have embedded ...
1
vote
0answers
27 views

How do we get Lightning to pass errors to the console rather than the “Look's like there's a problem:” dialog?

I've followed the steps from Trailhead, however when I have errors outside of my own components I get this unhelpful dialog. Is there something I'm missing to get a normal console error?
0
votes
2answers
61 views

Code Coverage When Tests Fail?

The Salesforce Developer Console only highlights lines of Apex code executed when a test class's assertions pass. Is there any IDE for Apex development that will show me which lines of code executed &...
2
votes
0answers
48 views

Sandbox Debug Logs not showing?

I have an issue where the debug logs are not consistently being written in our Sandbox environment. For the past 45 minutes cs4 has not written a debug log successfully, and we have tested this from ...
0
votes
0answers
57 views

Missing debug logs from sending a Visualforce Email Template

I have a Visualforce Email Template with associated component and controller. The template is functioning fine but I can not figure out how to view debug statements from the controller after sending ...
0
votes
0answers
34 views

Help with debugging an Apex Trigger that works in Sandbox and not in PROD

I wrote an Apex Trigger and Apex Class (Unit Test) and everything works fine in Sandbox. When I attempt to deploy it to PROD, I get Assertion Failed: Expected: 2, Actual: 0 Now, I suspect maybe ...
0
votes
0answers
142 views

System.QueryException: unexpected token: 'FROM'

I work on test class so I've to insert lead which is related to parents__c with lookup field, I created this test apex class (this the first section of the code where I got error). lead l = ...
3
votes
2answers
52 views

Code Debug Help? Why is this Map returning containsKey false on some records? (Code Inside)

Background: My company sells software. In my org, we sell subscriptions to our software and addons, or subscriptions for software support. We have 3 main types of subscriptions (Support, Software,...
0
votes
0answers
43 views

Debug issue with Apex Class

I'm having issues understanding my debug log. I have the following debug statements line #s 124-129: 124 System.debug( 'OPP RECORD TYPE: ' + opp.RecordTypeId ); 125 System.debug( 'PASS RECORD ...
0
votes
1answer
48 views

Compile Error: Constructor not defined: [ApexPages.StandardController].<Constructor>(List<Partner__c>)

I'm trying to write an apex test class for my apex (extension) of my visualforce page which display list of partners from partner__c sObject and do some actions on its rows like edit and delete. ...
5
votes
1answer
58 views

Spring 16 Developer Console - menus inoperative - Uncaught TypeError: b is not a function

Between 2016-01-19 and today, 2016-01-22, my Developer Console stopped working in Spring 16, cs21. Symptoms: All menu items do not drop down to a list of actions (instead, empty dropdown) No tabs ...
0
votes
1answer
18 views

There are no messages in Monitor/Debug Logs after call of System.debug

There are no messages in Monitor/Debug Logs after call of System.debug. However I can see them in Developer Console. System.debug(Logginglevel.INFO,'MsgTxt'); System.debug(Logginglevel.DEBUG,'MsgTxt')...
0
votes
0answers
13 views

Is it possible to turn on/include Execution Log into Debug Logs in Salesforce?

Is it possible to include Developer Console/Execution Log into Monitor/Debug Logs in Salesforce? I mean that very Execution Log that is in Developer Console. I need that verbose logging for day or ...
1
vote
0answers
22 views

Any way to save log files of all user per day/week/month in salesforce?

In my company ,there are 50 salesforce licence .some of them are getting some exception while using salesforce apex class programs they are not giving me good information to check where the exceptions ...
0
votes
0answers
24 views

Quick way to turn off logging for a number of apex classes?

With Winter 16 release - you can now set the logging level for individual apex classes. But this seems very manual and you have to set it for a specific time period. Can anyone suggest a better way ...
1
vote
2answers
58 views

VF Controller System.debug output not appearing in log file

I've got my Apex Code debug log level set to FINE (was DEBUG) and System debug log level set to FINE (was DEBUG). I'm still not seeing the result of my system.debug statements in the log file. I've ...
5
votes
2answers
66 views

Apex Debug logs not showing

I am having a huge issue of debug logs not showing. In a piece of code I know for sure that is being hit I have the System.debug statement that should be printing but it's not. If I take out the ...
1
vote
2answers
56 views

Apex Job - Writing to a log

I have been working with a few classes in the Developer Console and Execute Anonymous Window. All of these classes have various system.debug() calls through the code - the log entries are used for ...
1
vote
1answer
42 views

Debug Log of deployment test execution

Is it possible to see debug logs from Deployment Tests? I'm having some test's fail and it would be very helpful to see the logs.
2
votes
1answer
112 views

Decimal point result shows differently

I have Amount filed and its data type is number(16,2). When I see that field value by SOQL in Developer console then its 1525.54, I use same query in trigger and I see that value by system.debug() ...
1
vote
0answers
58 views

Page & controller load time!

To completely capture the page load time, i am using firebug(Firefox) to check the page load time which includes images / CSS / HTML etc. On the other had, i am using debug logs to check the load ...
1
vote
1answer
69 views

Large delay between FLOW_BULK_ELEMENT_BEGIN flow element and FLOW_CREATE_INTERVIEW_BEGIN

We have a flow, and have noticed it has greatly increased the time it takes for a bulk (200 record) transaction to complete. We've narrowed down the delay to a 78 second delay between ...
2
votes
1answer
173 views

Unable to set the Debug Level

I'm having trouble with the new Debug Log interface. I have set the traced entity to "Apex Class" and added the class file I want to trace. It is actually a trigger that dispatches out to the apex ...
1
vote
0answers
63 views

Large time gap in debug log before ENTERING_MANAGED_PKG

When viewing a debug log where the logging level was set to: APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO I am seeing a ...
3
votes
1answer
56 views

best apex debug log tool [closed]

What tool do you consider the best for analyzing Apex debug log? Are standard ones (Notepad++, Vim, etc) good? Any special plugins you think useful?
5
votes
2answers
3k views

Lightning App: how to fix [Exception, DomainNotPropagated] error

I'm working on Lightning Components which should be used it a Community created by the Community Builder. This gives me a very hard time to debug the components as described here: What is the best way ...
3
votes
1answer
551 views

What is the best way to debug Lightning Components (used in the Community Builder)?

I have a lightning component elfTest1 used on a page elf. The page itself is used as internal URL in the community builder wired via the menu. Now in case of a JavaScript error in elfTest1Controller....
2
votes
1answer
66 views

Unable to Change Log Levels - Winter '16

Working in sandbox with Winter '16 and when I try to change the log levels the page stalls I've checked the known issues list and haven't gotten any results. Has anyone run to this? Any workarounds ...
0
votes
1answer
13 views

Returning user profile, and debugging

I am not returning the correct profile. I have recently had this working but it isn't now. Am also having issues debugging. The debug line system.debug(userProfileName); gives me an error: ...
37
votes
4answers
2k views

Apex debugging in Winter '16 - how well does it work?

This Debug Apex Code in Eclipse (Generally Available) release note says: The Apex Debugger extends the Force.com IDE plug-in for Eclipse and behaves similarly to debuggers available for other ...
2
votes
1answer
167 views

Maximum stack depth reached: 12

In our code, at some point we do 73: if(someObj.SomeExternalId__c.equals(activeContract.SomeExternalId__c)) 74: someObj2.activeContract__r = activeContract; 75: } But it fails with "Maximum ...
4
votes
1answer
154 views

How to see the entire resultset in the debug log instead of (n more)?

Good Morning, Thanks in advance for reading. Is there any way to display the whole sObject in the resultset returned by SOQL query instead of the (n more) below e.g. 30 more, 22 more etc. ? I am ...
1
vote
2answers
378 views

System.debug() not appearing in batch test

I am running a test on a batchable class. @isTest public class BatchSkillExcalationUpdaterTest { static testMethod void ValidateUpdates() { ... EscalationSkillUpdater SkillBatch ...
10
votes
2answers
2k views

What is Debug level in new Salesforce Edition?

I wanted to set the debug log to test a class but today after few days when I was trying to set it, I saw its new look and feel in winter'16 release. It asked for event, level etc. I am unable to set ...
1
vote
3answers
77 views

Debug suddenly stops recording debug logs [duplicate]

I am having very very very frustrating problem here. I am coding my app, dumping to debug logs whatever I need and everything works magically. But at some point apex stops printing my debug logs. So i ...
0
votes
2answers
41 views

Inner class using container class

public class containerClass { private String checkAccess; public void checkAccessFunc(){ } public class innerClass{ public String InnerClassStr; ...
0
votes
1answer
25 views

Debug Log Limits? Can I not reset the available request and watch log as many as I want?

Do I have to create a record under "Monitored Users" when I want to debug something? I didn't have to do this early this year and I was able to monitor as many debug logs as I want. Can I not reset ...