Stack Exchange Network

Stack Exchange network consists of 174 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
18 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
19 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
28 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
472 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 ...
3
votes
0answers
54 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
23 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
51 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
162 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
161 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
59 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
101 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
94 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
59 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 ...
9
votes
1answer
314 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 ...
1
vote
1answer
381 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
486 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
41 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
18 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 ...
19
votes
2answers
10k 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
106 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
85 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
26 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
18 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
386 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
31 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
0answers
24 views

Accessing debug log file and send email to specific email id? [duplicate]

We have a requirement to attach debug log file in the email on specific condition. if there is any error in the file like null point exception, argument not null then code should attach the debug ...
0
votes
1answer
19 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
184 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
91 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
109 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
183 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
43 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
257 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 ...
13
votes
2answers
588 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
231 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
100 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
372 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 ...
1
vote
1answer
321 views

Debug AMPscripts

Is it possible to debug ampscripts using Sublime Text? I was going through ExactTarget Editor - AMPscript / SSJS but could not get though the suggested script %%=TreatAsContent(HttpGet(Concat("http:/...
2
votes
1answer
352 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
118 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
107 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
31 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, ...
0
votes
1answer
3k views

Action failed: c:exspenses$controller$clickCreateExpense [action.setCallBack is not a function]

I ran into this error when trying to Preview my Application from the Developer Console. When I click the "CreateExpense" button after entering in data into the fields (I might have spelled Expenses ...
20
votes
3answers
4k views

How do I debug my lightning component?

I have seen and read many posts in regards lightning component errors and realized there are no questions actually asking how to debug them. I recently stumbled upon: How do I start to debug my own ...
2
votes
2answers
172 views

Cannot get the type of List<SObject>

I am trying to find the type of a list using Schema class. Below is my code Main Method public void upsertCase(SlackWrappers.SessionCreateResponse rsp, String sObjectId) { system.debug(...
0
votes
0answers
162 views

How to debug the code to find whether we are getting response from the endpoint url

I have written a Api and Iam trying to debug to check we are getting the response. Please advise how to debug it . I did debug the code but in logs i get Status code ok But not the response. Please ...
3
votes
1answer
86 views

How to exclude logging by class in Summer 17 and later

I have searched and found this, but it is not the same question. I would like to suppress log statement for some classes. In older versions of Salesforce we were able to do this via the Trace Flags ...
0
votes
0answers
49 views

Need help debugging error in App Builder

I have some code here that is a lightning component,with CSS and JS files.I am getting this error: Action failed: c:PartnerViewLeads$controller$fetchLeads [Maximum call stack size exceeded] ...
1
vote
1answer
48 views

Issue with DateTime.Parse method in EU salesforce Instances

String dtTimeStr1='10/14/2011 11:46 AM'; DateTime dtTime= DateTime.parse(dtTimeStr1); The above piece of code runs successfully in NA instances but in EU instances it throws an error Invalid date/...