Loading

Script error when trying to execute code in Developer Console

Date de publication: Jun 26, 2023
Description

When I'm trying to open the Developer Console it freezes the browser and, depending on the browser, we can see the following error:

"A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue."
Résolution

The solution would be to reset the IDEWorkspace for the affected user. To do this, please:
1. Open the Developer Console as the affected user.
2. When the error appears, press the "Debug Script" button. If you don't have a "Debug Script" button you'll have to open the Browser's Developer Tools manually (please scroll down to the bottom of this Article for additional information).
3. Move to the 'Network" tab of the browser's Dev Tools.
4. You'll find a number of requests, if you don't, please refresh the browser. We're interested in a request with the following format (Please click on the link and copy the id):

?q=SELECT%20Id%2C%20Name%2C%%20Content%20FROM%20IDEWorkspace%20WHERE%20Id%3D%271deQ0000004HmJIAU

5. The 'Id' value is the one we are looking for. Please copy that.
6. Make a REST call with GET request for "/services/data/v40.0/tooling/sobjects/IDEWorkspace/1deQ00000004HmJIAU" - remember to replace the "1deQ00000004HmJIAU" parameter with the "Id" relevant to your org that you obtained in step #5.
7. You will see the content of the affected user's IDEWorkspace.
8. Do a DELETE request for the same URL received on Step 6.
9. Re-open Developer Console

After following these steps the Menus should be available again and the error message should no longer appear.

Browser's Developer Tools additional information. NOTE: Workbench is not an officially supported tool
Numéro d’article de la base de connaissances

000387015

 
Chargement
Salesforce Help | Article