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

3
votes
1answer
17 views

Interpreting results of capturing map values in system.debug

I am trying to iterate over and display a Map<String,List<string>> in a visualforce page. I understand that I probably need to switch to a inner / wrapper class. But first, I want to ...
10
votes
0answers
53 views

How does Salesforce determine where to apply the “*** Skipped X bytes of detailed log” section in a log

Firstly, this question isn't about how to access missing log content when a *** Skipped 53353122 bytes of detailed log style message is encountered. That is covered in another question and resolves ...
1
vote
2answers
24 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:...
4
votes
0answers
47 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
51 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
47 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
94 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
45 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
37 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
62 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
42 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
84 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
44 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
54 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
57 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
22 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
28 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
66 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
52 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
69 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
35 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
185 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
45 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
61 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
60 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
19 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
30 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
63 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
76 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
60 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
49 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
117 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
64 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
72 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
199 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
65 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
566 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: ...
40
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
183 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
165 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
416 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
83 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 ...