Viewing Background Process Session State
View a background job’s working session to inspect its session state during debugging.
To view the session state of a background process, start by opening the Monitor Activity page from the “person with wrench” menu button in the App Builder as shown below. Then identify a user session like SUSAN’s and click its session id link to drill down for more information.

Description of the illustration find-details-active-sessions.png
On the Session Detail page, select the Background Processing tab as shown below to see all its scheduled and running jobs. To view the session state of a particular background job’s session, just click on the appropriate session id link in the Work Session ID column.

Description of the illustration backround-executions-session.png
This opens the Session Detail page for the background job’s working session. From there, select the Session State Item Values tab. As shown below, you can then inspect the values of any session state that are not encrypted.
Tip:
Seeing the values of encrypted session state for debugging purposes requires temporarily adding APEX_DEBUG.INFO calls into your code while you are triaging the cause of a particular problem. These additional messages can include values using %s placeholders like:
apex_debug.info('### DEBUGGING (%s) (%s)', expression1, expression2);
