Questions tagged [debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

Email 2 Case trigger

Trying to setup a trigger to fire on the EmailMessage for Email to case to set a few custom required fields we have on case. I've seen other examples of people using what I have below, but I can't ...
0
votes
1answer
92 views

Superbadge: Advanced Apex Specialist Step 6

Step 6 of my superbadge fails and looks like this: The error message reads: Challenge Not yet complete... here's what's wrong: Ensure that you use the ConnectAPI for the announcement, not a FeedItem....
3
votes
1answer
274 views

VS Code + sfdx: debug logs [duplicate]

Until a few weeks ago, vs code use to have a reasonable error message if there was an error when deploying. But I notice the last few weeks this is change and it is not very descriptive the problem, ...
2
votes
0answers
44 views

Differently aligned Save and Cancel button in debug edit page Summer 16

In a Summer 16 org i'm seeing some UI changes at least in Edit trace flag screen. When i edit user trace flags for my user I see the Cancel button is left aligned and Save is right aligned (They ...
13
votes
9answers
10k views

Delete all in Debug log

Delete all option in Debug log deletes the log page-wise. Is there any option to delete all the logs in debug at an instance?
1
vote
1answer
25 views

Flow Not Creating Account Share Record (Works in Debug Mode)

I have a flow that is working via the flow builder Debug page, but not when triggered in Salesforce. It worked several weeks ago, so I wonder if there's something with Summer '19 that's causing an ...
0
votes
2answers
496 views

Salesforce debug logs

I don't see my System.debug() comments in my debugger. I need these to return a response to an API callout response from Marketo. For example, System.debug(res2.getBody()); When I test the code ...
3
votes
2answers
1k views

Developer Console Not Showing Debug Logs

My Question: How are we meant to setup Debug when using the Developer Console Log List (Tab)? Previously we never had to setup anything, opening the dev console would setup Debug automatically, and ...
4
votes
1answer
42 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
32 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
1answer
139 views

apex replay debugger - command 'sfdx.launch.replay.debugger.logfile' not found

Problem with launching apex replay debugger. Cant even launch. I have in vsc Salesforce Extension Pack and work with it. run SFDX: Turn On Apex Debug Log for Replay Debugger. get debug logs.(level ...
6
votes
3answers
334 views

Adding a System.debug changes code behavior

I have the following code Map<Account, Integer> accountsMap = new Map<Account, Integer>(); Account a = new Account(); accountsMap.put(a, 1); a.name='Bob'; //System.debug(accountsMap); ...
0
votes
2answers
69 views

How print return value in debug - return (WS_BankStatementResponse) System.JSON.deserialize(jsonReplacedString, WS_BankStatementResponse.class);

public static WS_BankStatementResponse parse(String json){ String jsonReplacedString = json.replace('"date":', '"startDate":'); System.debug('String Replaced : '+jsonReplacedString); ...
34
votes
2answers
17k 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. ...
0
votes
1answer
29 views

Where to look for in debug: list index out of bounds

I am trying to debug a piece of code where I get the error : list index out of bounds: 0 In this case do I need to look for:ZcheckoutBaseFor.validateConfiguration() or could this also be :...
0
votes
1answer
124 views

Too Many SOQL Queries error

I am coming into this problem in my debug logs. But when I'm reviewing the logs I am only seeing individual reads of SOQL query counts from various apps such as : Number of SOQL queries: 5 out of ...
3
votes
1answer
138 views

Debug logs for Change Set Validation

I can't seem to get debug logs working for Change Set Validation in PROD. I have checked in the regular Debug Logs section and the Developer Console. They don't show up. The debug logs show up for ...
1
vote
0answers
31 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.
0
votes
1answer
45 views

System.debug prints twice [closed]

I encountered this weird thing: when I use: System.debug(); I get everything printed twice... and it only happens for the Account object. I'm guessing this is a reason why my API callout doesn't ...
1
vote
1answer
66 views

Avoid “Variable Assignment” log event creation

Due to Salesforce logsize limit (250 MB) I have to reduce the log file issued from one of our process in the org. After a lot of code-optimization and removing all useless statements the logfile is ...
5
votes
0answers
114 views

No DML_END Issue

Yet another "what gives" question. I have a custom object that is updated upon a button click on a VisualForce Page. I can see in my debug logs that the object has been updated. But when I refresh ...
2
votes
6answers
2k views

How to show only user debug entries in the Debug Log view?

I am trying to setup filters on the Debug Logs page so that only entries caused by System.debug('foo') in my code show up. Is there a way to do that?
0
votes
1answer
207 views

Operation 'EmailToApexHandler' is not appearing in debug logs while verifying Email Service

Earlier, I have successfully performed the steps outlined in the answer of how-to-leverage-org-wide-email-address-within-an-email-service to verify the Email Service Address generated by Salesforce. ...
3
votes
1answer
315 views

Duration in milliseconds is very high for a batch job and recorded in debug log. What could be the reason for the huge duration?

After One of the batch job ran, i got the log details as follows that shows huge duration in milliseconds. Where could this time consumed? What it means actually? I am worrying that i could have hit ...
0
votes
1answer
245 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
46 views

List doesn't get populated in the for loop

Whole of my code works perfectly, except for this part Inside of the for loop, where the system.debugs are, the system debugs don't leave any type of message on the debug log. The "anorder.id" comes ...
2
votes
1answer
932 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 ...
1
vote
1answer
75 views

Keyset does not contain key while iterating

I am not sure how this is possible, but I keep getting null back as the value associated to a key as I iterate over a keyset... List<Contact_Survey__c> contactSurveysToInsert = new List<...
5
votes
1answer
796 views

Writing too much to debug log increases heap and cpu time

I have just observed that writing to debug log using System.debug increases heap size as well as CPU time. Is this normal. Please see the screenshot below for the comparison. The first one with so ...
3
votes
2answers
895 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 ...
4
votes
1answer
609 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 ...
4
votes
0answers
427 views

How to debug Post-Install script?

We don't get much information on email received by subscriber if Post-install script fails. Problem: Unexpected Error The package installation failed. Please provide the following ...
0
votes
2answers
49 views

json data in debug using loop not working

I am getting response from json and its showing in debug log but when json is very large then nested loop is not working and cpu time limit exceed. how to use map instead of nested for loop. ...
0
votes
2answers
430 views

How to Debug SOAP UI

Is it possible to run the debug log on a SOAP UI call? I assume not because it is an external service but, because it is calling apex classes, I feel like there should be a way to look at the logs. ...
4
votes
1answer
2k views

Get Debug Logs with specified log levels for Execute Anonyous via APEX ToolingAPI, SoapAPI or anyhow

A) via ToolingAPI I'm trying to execute apex-code via public ExecuteAnonymousResult executeAnonymousEncoded(String body) of the ToolingAPI.cls from within APEX. So far it works. But I was not able ...
0
votes
0answers
33 views

How to handle uncaught custom exceptions in a managed package that are not being logged

I've noticed that uncaught custom exceptions in managed packages aren't recorded in the debug log if it's thrown in the context of the Salesforce UI or Lightning community. The exception message can ...
0
votes
1answer
53 views

Debug Logs - how to download data [duplicate]

I want to dowload data which contains debug logs. Is it saving somewhere in files or Database column, from where I can read it? My idea is to stream data from there to my app, which is looking for a ...
0
votes
1answer
49 views

Debug logs not being shownup in developer console

I am having a piece of code in which i am having some debug statements.But in developer console not even single debug is showing up.I even changed the expiration time. Public PageReference ...
0
votes
1answer
25 views

why debug statement show Id instead of name while test class execution?

I run the test class and try to capture the permission set name in debug. But i got Id than name. Any reason why I am getting this ? Please help me to understand. See the image, what i query in ...
4
votes
1answer
622 views

get set method for value in class

I have a class with a getter and setter method. Could anyone explain how this works. If I am correct it is suppose to get and set a variable between a visualforce page and apex class. Is this also ...
1
vote
3answers
204 views

Two debug logs when loading one visualforce page

I have written a lengthy visualforce page for an account plan. After working almost all of the kinks out, I am now concerned with performance. Simply put, the page takes longer to load than I think it ...
0
votes
1answer
676 views

How do I disable debug log when deploying and running tests with ant migration tool?

I am running into an issue where every time I deploy to my org with the ANT tool the output is flooded with unit test debug logs. I have added logType="None" to the build.xml which doesn't help. I ...
4
votes
1answer
123 views

debug logs not working sites from future mode method

Debug logs not working only in sitemode from future method. But admin mode is working fine (using samecode). could you please give me any ideas.
1
vote
2answers
150 views

Getting error in system debug

while executing this code,am getting this error: Method does not exist or incorrect signature: void substring(Integer, Integer) from the type List<MVImportBatch__c> code: List<...
0
votes
1answer
344 views

Setup Debug logs for Guest users [duplicate]

When establishing community, the actions of visitors such as self registration is not captured by default How to setup debug logs for guest user of communities is important to trouble shoot the ...
0
votes
1answer
23 views

Incompatible element type Id for collection of Account

I have this save error "Incompatible element type Id for collection of Account", and i don't know how to remove it. I've found many subject on Internet but nothing seems to correspond to my specific ...
11
votes
2answers
3k views

Salesforce doesn't show debug logs

Hey guys I can see that salesforce says Debug Logs(3) but I cannot see them. Why is this? I am attaching a photo as a reference.
0
votes
1answer
157 views

Debug Log in RESTResource [duplicate]

My problem is very similar to this . But adding necessary user(Site owner) to Debug Logs doesn't help me. I don't see any logs at all. But webservice works well.
4
votes
2answers
953 views

Debug logs in developer console?

I am troubleshooting some performance issues with inbound integration to Salesforce. When some data is being sent by external system to Salesforce, the response time of Salesforce to external system ...
5
votes
3answers
442 views

Automatically Remove System.debug statements from Apex Code?

We normally come into situation that, before production deployment we need to remove system.debug('*****'); statements from the code. I am wondering if there any existing tool is available for such ...