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.

0
votes
1answer
25 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
21 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 ...
12
votes
1answer
145 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
2answers
101 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
22 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
37 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
23 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
191 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
123 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
23 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
30 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
559 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
161 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
36 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
72 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
363 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
440 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
149 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
145 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
147 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
65 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 ...
11
votes
1answer
437 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
705 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
595 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
42 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 ...
29
votes
2answers
14k 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
303 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
109 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 ...
0
votes
0answers
73 views

How to identify 500 Internal Server Error in sfdc logs which not captured

I have rest API created which is calling by other system. Few days back they received the 500 Internal server error. How can i check the error is from SFDC side or not and cause of the error.
2
votes
2answers
20 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
616 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
390 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
95 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
153 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
256 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
49 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
421 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 ...
17
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
366 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
133 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 ...
4
votes
1answer
496 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
558 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'...
0
votes
0answers
142 views

Force.com IDE Eclipse Anonymous execution Debug

So I have just started using eclipse with the Force.com IDE. I am executing code in the anonymous window and it shows me that the execution was successful. However, I have a System.debug(); line in my ...
1
vote
1answer
209 views

Understanding the Exception record in Debug Logs

I am unable to access a certain VF page from the Customer Portal, I get the following standard error: Error: Error occurred while loading a Visualforce page. So I added a trace flag for the ...
1
vote
0answers
32 views

Debugging logs for a Lightning app which implements=“ltng:allowGuestAccess”

Using the link below, https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/rn_lightning_apps_in_communities.htm by adding the ltng:allowGuestAccess interface to my Lightning app, ...