Summer'16 - System.debug stops working after trying to output timezone
Apex , Developer Console , Summer 16
Last updated 2022-02-10 ·Reference W-3227821 ·Reported By 2 users
Summary
System.debug stops working after trying to output timezone value.
Repro
1. Open Dev Console
2. Change Dev Console's trace flag category APEX_CODE to Debug. Other categories should be none.
3. Execute anonymous: System.debug(Timezone.getTimeZone('America/New_York'));
DEBUG LOGS:
Summer'16 - APEX_CODE level Debug
37.0 APEX_CODE,DEBUG;APEX_PROFILING,NONE;CALLOUT,NONE;DB,NONE;SYSTEM,NONE;VALIDATION,NONE;VISUALFORCE,NONE;WORKFLOW,NONE
Execute Anonymous: System.debug(Timezone.getTimeZone('America/New_York'));
13:03:00.5 (5051952)|USER_INFO|[EXTERNAL]|005xx000001Swko|j1@jwidjaja.com|Pacific Standard Time|GMT-07:00
13:03:00.5 (5098800)|EXECUTION_STARTED
13:03:00.5 (5116861)|CODE_UNIT_STARTED|[EXTERNAL]|execute_anonymous_apex
Summer'16 - APEX_CODE level Fine
37.0 APEX_CODE,FINE;APEX_PROFILING,NONE;CALLOUT,NONE;DB,NONE;SYSTEM,NONE;VALIDATION,NONE;VISUALFORCE,NONE;WORKFLOW,NONE
Execute Anonymous: System.debug(Timezone.getTimeZone('America/New_York'));
13:01:52.2 (2190194)|USER_INFO|[EXTERNAL]|005xx000001Swko|j1@jwidjaja.com|Pacific Standard Time|GMT-07:00
13:01:52.2 (2236615)|EXECUTION_STARTED
13:01:52.2 (2254533)|CODE_UNIT_STARTED|[EXTERNAL]|execute_anonymous_apex
13:01:52.2 (4247220)|SYSTEM_METHOD_ENTRY|[1]|TimeZone.TimeZone()
13:01:52.2 (4303329)|SYSTEM_METHOD_EXIT|[1]|TimeZone
13:01:52.2 (4367958)|METHOD_ENTRY|[1]||System.TimeZone.getTimeZone(String)
13:01:52.2 (4907592)|METHOD_EXIT|[1]||System.TimeZone.getTimeZone(String)
13:01:52.2 (5097013)|ENTERING_MANAGED_PKG|
13:01:52.2 (5507267)|USER_DEBUG|[1]|DEBUG|America/New_York
13:01:52.2 (5616823)|CODE_UNIT_FINISHED|execute_anonymous_apex
13:01:52.2 (6955427)|EXECUTION_FINISHED
Spring'16 - APEX_CODE level Debug
36.0 APEX_CODE,DEBUG;APEX_PROFILING,NONE;CALLOUT,NONE;DB,NONE;SYSTEM,NONE;VALIDATION,NONE;VISUALFORCE,NONE;WORKFLOW,NONE
Execute Anonymous: System.debug(Timezone.getTimeZone('America/New_York'));
17:06:22.11 (11834001)|EXECUTION_STARTED
17:06:22.11 (11931084)|CODE_UNIT_STARTED|[EXTERNAL]|execute_anonymous_apex
17:06:22.11 (22856700)|USER_DEBUG|[1]|DEBUG|America/New_York
17:06:22.11 (23203333)|CODE_UNIT_FINISHED|execute_anonymous_apex
17:06:22.11 (25905300)|EXECUTION_FINISHED
Spring'16 - APEX_CODE level Fine
36.0 APEX_CODE,FINE;APEX_PROFILING,NONE;CALLOUT,NONE;DB,NONE;SYSTEM,NONE;VALIDATION,NONE;VISUALFORCE,NONE;WORKFLOW,NONE
Execute Anonymous: System.debug(Timezone.getTimeZone('America/New_York'));
17:05:51.26 (26630163)|EXECUTION_STARTED
17:05:51.26 (26981403)|CODE_UNIT_STARTED|[EXTERNAL]|execute_anonymous_apex
17:05:51.26 (314383084)|SYSTEM_METHOD_ENTRY|[1]|TimeZone.TimeZone()
17:05:51.26 (314700520)|SYSTEM_METHOD_EXIT|[1]|TimeZone
17:05:51.26 (327260039)|METHOD_ENTRY|[1]||System.TimeZone.getTimeZone(String)
17:05:51.26 (453244956)|METHOD_EXIT|[1]||System.TimeZone.getTimeZone(String)
17:05:51.26 (493718561)|USER_DEBUG|[1]|DEBUG|America/New_York
17:05:51.26 (494614646)|CODE_UNIT_FINISHED|execute_anonymous_apex
17:05:51.26 (496481272)|EXECUTION_FINISHED
Workaround
None
Reported By (2)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.