Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debugging]

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.

1
vote
1answer
52 views

ContactAttempted in Journey history

What would be the best way to understand what's behind "ContactAttempted" status in a specific Journey for a contact who entered one. This is nothing good for sure as I can see that it is NOT related ...
4
votes
1answer
34 views

Is there any way to change definition of default user created for scratch org? [duplicate]

Is there any way to change definition of default user created for scratch org? I would like the default Administrator user to have properties UserPreferencesUserDebugModePref ...
1
vote
1answer
30 views

Can not enable debug logs because there are “too many logs” [duplicate]

I am trying to set up debug logs for a user, but every time I try it, I get the following error: Having an active trace flag triggers debug logging. You have 329 MB of the maximum 250 MB of debug ...
0
votes
0answers
36 views

getting Must trace apex_code at finest when checking the variable panel

I have already set the apex debug level at FINEST but still when I check the variable panel I still see the message must trace APEX_CODE at Finest can someone please suggest on the same? Below is the ...
0
votes
1answer
109 views

VSCode Debug Add Configuration error Cannot read property 'openConfigFile' of undefined

I created a Salesforce project in VSCode and when I try to debug Apex Classes adding a Debug Configuration I get the following error: Cannot read property 'openConfigFile' of undefined I'm using the ...
0
votes
0answers
26 views

Debug Single Sign-On

I haven't worked with single sign-on very much and currently I am trying to get single sign-on setup with Azure AD as the identify provider. I've walked thru the steps and I have a successful ...
13
votes
1answer
362 views

Developer Console suddenly truncating System.Debug output

Like many devs, I use JSON.Serialize() with System.Debug() to output large lists/objects to the Debug Log when needed. Over the past few days, I've run into a new issue with Developer Console where ...
2
votes
3answers
258 views

system debug messages get trimmed

I have an issue where i run an apex class and print some objects along the way to log using System.debug(). my problem is that for some reason, the log rows are getting written, but the value of the ...
0
votes
0answers
27 views

How to Log Complete HTTP Request

I am trying to capture an HTTP request in it's entirety as it is sent from salesforce. After adding headers my request I have attempted to use JSON.serialize and String.valueOf, where as JSON....
0
votes
1answer
39 views

Repeated invocations of Trigger Dispatcher. Logs not helpful

I have a method in a trigger dispatcher that's being called in a recursive but seemingly untraceable fashion. The following log entries just repeat over and over until I reach maximum stack depth. ...
0
votes
1answer
34 views

View Logs from API calls made externally

In the developer console, I am only able to view the logs of an API call that I made from within the developer console (tests) or from workbench. But when I make a call from Postman, I do not see any ...
0
votes
0answers
22 views

Unable to view debug logs when it has an error

Lately, whenever I get a null-pointer exception, I am not able to open the debug log associated with it. I've tried several tools and it always says its been deleted before I can open it, even if I ...
4
votes
1answer
235 views

Apex Replay Debugger: Cannot read property 'name' of null

When I select Launch Apex Replay Debugger in VS Code it asks me to select a log file and then gives me this error message: Cannot read property 'name' of null I've managed to get the Apex Replay ...
2
votes
1answer
157 views

Apex Interactive Debugger

Is there a way to set up the Apex Interactive Debugger for VS Code for free in a Developer Edtion org? I'm a little confused on how to get started using this feature. Any guidance would be appreciated....
1
vote
0answers
27 views

Debug a Beta version of the managed package

Is it possible to debug a Beta version of the managed package? It seems that LMA works only with those apps that were published on AppExchange. Thank you.
1
vote
1answer
31 views

Inconsistent Debug Value

Debug Log captures all the values once holding maximum Log Size,and subsequent debug value with minimum log Size having no proper value.May I know what causes this issue?Any Help please?Thanks in ...
7
votes
1answer
597 views

What does Lightning Debug Mode do exactly?

When you enable UserPreferencesUserDebugModePref on a User, s/he will be running lightning components in debug mode. The only difference I could perceive is that (more) console warns are printed. Per ...
4
votes
1answer
207 views

Limitations of Apex Replay Debugger in VS Code

global class Opportunity_EmailService implements Messaging.InboundEmailHandler { public Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env) { ...
0
votes
0answers
39 views

LeadConvert Troubleshooting

How can you diagnose errors with the LeadConvert class? I built this class out in a scratch org and it worked perfectly fine. I pushed that to a sandbox and now I cannot get it to work. I deactivated ...
1
vote
2answers
87 views

Debugging DE submission AMPScript on a landing page?

I have a landing page that is intended to collect data from a form and send it to a data extension when the form is submitted. Currently the page is not working and redirects to the stock 'internal ...
5
votes
1answer
449 views

Different values from URL.getSalesforceBaseUrl().toExternalForm()

I have a managed app that uses URL.getSalesforceBaseUrl().toExternalForm() to create a Remote site for ToolingApi. This works great in all environments (Production, Dev/scratch org), however, it's ...
0
votes
2answers
576 views

System.debug does not output when written in trigger

I have the following trigger: trigger HelloWorldTrigger on Account (before insert) { System.debug('Hello World!'); } I checked that the trigger code is saved. Now I run the following anonymous ...
0
votes
1answer
215 views

System.debug not showing up in salesforce trigger execution

I have trigger which works on after update call on a particular object. I added some debug points to understand which data that I am getting from the record. When I click on save button on the ...
0
votes
0answers
179 views

JSON.parse error but not using JSON

I am using the below code in a VF page but I am getting the error: Source map error: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data Resource URL: https://menabev--...
3
votes
0answers
177 views

Limits information not appearing in debug log

I need to debug a governor limit issue in a particular procedure but I'm not getting the LIMIT_USAGE_FOR_NS section in the debug log even when I set Profiling to Finest. I expect to see this in the ...
0
votes
2answers
66 views

Need Debug Logs of Last Month

We have a production issue which was occurred a month back and he raised it now with out any steps to reproduce. and we are unable to reproduce so is there any chance of getting the debug logs of ...
10
votes
1answer
475 views

What is the Nba Log Category?

I was tweaking my log settings today and noticed this oddity: Notice to the right of Wave appears a new Log Category: Nba. The Tooling API Developer Guide specification for TraceFlag does not even ...
2
votes
1answer
836 views

Where is the Lightning tab in the developer console?

I installed the Salesforce Lightning Inspector Chrome Extension. Now I want to debug my lightning component. I go to extension menu in Chrome, chose Inspect Lightning Component and I am getting this ...
5
votes
1answer
676 views

Does debug log level increase CPU time?

We are running through a very strange behavior. Actually, we are using Salesforce CPQ. While updating the Quote we started getting "Apex CPU time limit exceeded.." error. We debugged and found that ...
3
votes
1answer
43 views

Anonymous Block Query for Related Column

I am trying to get the actual DeveloperName to display from the anonymous block code but all I can seem to get is the ID. Contact C = [Select id, FirstName, Recordtype.DeveloperName from contact ...
0
votes
2answers
23 views

testing soql in apex with the developer console [duplicate]

I put this code into the execute anonymous windows: List<Id> ids = new List<Id>(new Map<Id, Account>([select Id from Account]).keySet()); system.debug(ids); I get a list of ids in ...
31
votes
2answers
16k views

Error while updating debug log trace flag

I am trying to update the debug log trace flag for my user but getting the following error Having an active trace flag triggers debug logging. You have 259 MB of the maximum 250 MB of debug logs. ...
1
vote
1answer
452 views

What user to debug for public Communities access?

I need to debug self-registration for a Salesforce Lightning Community, however since the user is not logged in yet (using self-registration code), I don't know which user to select for DEBUG. Does ...
2
votes
0answers
119 views

Lightning Components go crazy with errors and CPU when Debug Mode on

When I enable the Debug Mode for Lightning components in the Setup most of my Lightning components literally go crazy. They bombard me with cryptic erros like that and after a while my Chrome brings ...
2
votes
2answers
21 views

Cant traverse object relationship in system.debug in test method?

I am unable to use system.debug to traverse object relationships in a test method. Is this known behavior or am I missing something obvious? (i have set audit fields enabled so i'm able to set ...
3
votes
2answers
760 views

How are we supposed to use debug logs for a specific Apex class only

I'm trying to capture the logs for a specific class for a user with a lot of transactions (hundreds in any given minute). For example, the user will have 100 transactions done in a minute that will ...
0
votes
1answer
33 views

Site Guest User Debugs

While working on a custom visualforce community, we noticed the guest site user login attempt is being captured. We were expecting a cookie (https://releasenotes.docs.salesforce.com/en-us/winter17/...
0
votes
1answer
26 views

Understanding where System.debug() goes

I am making changes to an Apex controller class and something is not quite working. I have added in some System.debug('message'); lines to see which logic gets executed, variable values, etc. I then ...
1
vote
1answer
503 views

Can't see managed package code/logs when logged into subscriber org with LMA

Based on the Troubleshooting in Subscriber Organizations guide, it seems that when a subscriber has granted you access to their Salesforce organization, you should be able to see obfuscated code and ...
1
vote
1answer
98 views

List.contains returns different results if the user is being debugged

I am building a Salesforce Community. One of pages has a component that calls a controller action that returns a list of skills (custom ValueLabelModel class). I have configured my Community user, ...
0
votes
1answer
174 views

Live Agent Pre Chat Form Visualforce page action attribute on apex:page tag not working

I have a live agent Pre Chat form visualforce page in which I am trying to call a method in a controller in the following manner: <apex:page standardStylesheets="true" sidebar="false" showHeader="...
4
votes
1answer
295 views

Is there a better way to debug Salesforce automation (triggers/workflows/process builder) than Developer Console > Perspective Manager?

I have some very simple automation in place for demoing Salesforce "Order of Execution". I have a field on called Version__c which increments by 1 in a trigger and a workflow. This is what happens: ...
0
votes
1answer
55 views

Unable to access the constructor string in execute method in Batch apex [duplicate]

i am getting the string in constructor. but how can i access that string in execute method. i am trying to access like this: global class samplebatchcreateaccount implements Database.Batchable<...
4
votes
1answer
502 views

Debug Log Traced Entity Type Apex Class

I am setting the debug log Entity Type to APEX Class and it is not logging anything when I call the class. The class I am setting it as is definitely being called, the date/time is set to 24 hours ...
18
votes
2answers
1k views

Avoid Proxy objects in debug statements for a Lightning component

This may be a very basic questions, but I don't seem to find the answer for it! Basically I want my console.log statements to show all the good stuff instead of the LockerService Proxy object. Is ...
0
votes
0answers
22 views

Adding Text To System Error Output?

I'm writing triggers for two highly interdependent objects, and they kind of need to circle around passing the insert/update ball back and forth to each other to the extent allowable because there are ...
0
votes
1answer
436 views

Compile Error Extra ')' - System Debug [closed]

My code: public class createController { system.debug('hello'); } My Error: createController Compile Error: Extra ')', at 'hello'. at line 2 column 14 The debug returns when I use the ...
1
vote
2answers
155 views

Inserting exception logs in a managed package

I have a managed package since we cannot see the debug logs in client orgs we are writing them to a dedicated logging object. We have a problem where it is refusing to write anything. In the debug ...
5
votes
1answer
556 views

Why do debug logs not always work for a @future method?

I'm working on an Apex class that contains a method annotated with @future. Inside of the method I have a few system.debug statements I'm using to figure out why it's not working. The problem is -- if ...
2
votes
1answer
660 views

Getting Owner information for custom object within apex

Public Clinic_Patient__c patient{get;set;} Public Clinic_Patient__c patient_owner{get;set;} Public String SurgeryID{get;set;} SurgeryID = System.currentPageReference().GetParameters().get('SurgeryID'...