Questions tagged [debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
37
votes
2answers
22k 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. ...
17
votes
9answers
14k 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?
12
votes
2answers
3k views

What is Debug level in new Salesforce Edition?

I wanted to set the debug log to test a class but today after few days when I was trying to set it, I saw its new look and feel in winter'16 release. It asked for event, level etc. I am unable to set ...
5
votes
1answer
734 views

Logs always showing ENTERING_MANAGED_PKG in dev org

I am developing in a namespaced DE org (not packaged yet) and using standard SFDC_DevConsole debug levels (Apex = Debug, System = Debug, DB = Info) with no trace overrides. But all I see in the logs ...
0
votes
1answer
28 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 ...
17
votes
1answer
12k views

Debug logs not working for Site Guest Users (Force.com sites) after the Winter 17 release [duplicate]

Recently our team has noticed that turning on the Debug Logs for a Site Guest User has stopped working. Prior to the Winter 17 release, if you turned on Debug Logs for a Site Guest User, logs appear ...
26
votes
3answers
3k views

Writing too much to debug log would affect APEX trigger or Visualforce page performance?

In order to debug we usually write chunks of data to the debug log using System.debug statements. Will writing too many debug logs affect visualforce page or Apex performance in any way?
8
votes
3answers
516 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); ...
6
votes
1answer
977 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
2answers
2k 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
2answers
1k 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 ...
4
votes
1answer
462 views

Debug log - CPU Time limit issue

I have specified the query limit as 210 records for which the CPU time limit shows as 14195ms but the maximum CPU time limit seems to be 10000ms in debug log. Maximum CPU time : 14195 out of 10000 ***...
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 ...