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 [debug]

The tag has no usage guidance.

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
28 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
58 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 ...
3
votes
3answers
236 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
29 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); ...
0
votes
1answer
23 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
70 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 ...
1
vote
0answers
26 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
42 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
53 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
96 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 ...
0
votes
1answer
147 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. ...
0
votes
1answer
195 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
785 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 ...
31
votes
2answers
15k 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
59 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
654 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
693 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 ...
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
459 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 ...
3
votes
0answers
351 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
48 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
371 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. ...
0
votes
0answers
31 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
43 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
46 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
23 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
567 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
192 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 ...
4
votes
1answer
120 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
119 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
309 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
125 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
897 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
403 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 ...
0
votes
2answers
213 views

How to use debug logs

I want to check a workflow name using debug logs as a result I am unable to set the criteria for debug logs. I want to fetch a data for a user for 10th March,2017 but getting an error that expiration ...
0
votes
1answer
149 views

Operation column in Debug logs

What does "/ui/common/InlineEditEntitySave" under Operation column in debug logs mean? What class or trigger or page has been called for this opration to trigger?
1
vote
0answers
541 views

Set a Browser Cookie to Enable Debug Logging for Guest Users

I know that it has a lot of trends created about this topic but none of them worked for me. So, I opened my site and create the cookie with document.cookie="debug_logs=debug_logs;domain=.force.com";...
0
votes
1answer
705 views

Get Debug Logs from Salesforce with MavensMate

I'm working with MavensMate v0.0.11-beta7 and using Salesforce API v.38 in configuration. I would like to get Debug Logs from Salesforce with MavensMate in order to open the files with Sublime Text. ...
4
votes
1answer
300 views

Is it a good practice to set debug points in possible failure points in our Apex code?

For example we're using validation methods to verify customer address. Since this is a paid 3rd party service used by our client, if client missed paying for the service, data validation would fail ...
0
votes
1answer
22 views

Customizing the Debug level

Can i customize the debug levels to match my needs instead of having all the levels from Info to Finest? I don't need all these levels. All i need is 2-3 levels to which I want to confine my data ...
-3
votes
1answer
299 views

getting DuplicateDetector error in vf page

I am getting the error seen in the above log. Why am I getting this error while trying to create a Account record from a Visualforce Page? System.DmlException: Insert failed. First exception on row ...
0
votes
1answer
153 views

Debug and test on Javascript console for a Visualforce Page [closed]

I recently saw a UI/UX guy debug on JavaScript console in Chrome. I too have worked on this console but I would like to ask this simple question. When I create something like this on VF... <tr> ...
1
vote
0answers
74 views

Not Getting Debug Logs Even Though Not Guest User and Trace Flags Set

I have setup my User Trace Flags like I would normally as my current user, but for some reason no debug logs are being captured. It would be different if statements were missing in the log, but I am ...
0
votes
0answers
52 views

Weird issue with Debug Statement and trigger handler

I have a weird issue that I'm not even sure how to describe completely. Basically, in my trigger handler class I'm using a set of set of Ids to compare records so only the new records not contained in ...
0
votes
1answer
731 views

Debug log is not capturing the Logs [duplicate]

I have set a Debug Log in my sandbox Org but it did not capturing any logs. Please advice what it my be the reason for it.
0
votes
2answers
423 views

Why the debug logs are not showing executed workflows

I would like to debug on workflows that are getting executed on changes to the Contact record. However, I am not able to see any workflow steps that have been executed during their creation in the ...