Editing Variables in the JavaScript Debugger
You can edit variables in debug mode of the JavaScript Debugger. The Edit variable dialog box helps you to view base types and JSON scripts in a column-based format and edit field-value pairs for improved data visualization and modification. You can also edit scoped variables (input parameters and variables defined in the script) during debugging.
In the Variables section of the Debug tab, click Edit icon next to a variable to perform the following actions:
Button
Description
Add to Watch icon Add to Watch
Adds the selected variable to the Watch tab for monitoring.
View icon View
Opens the Edit variable dialog box, from where you can view the variable and its current base type. You can align the displayed value in the editor with a selected base type.
Edit icon Edit
Allows you to edit elements of a variable and align the displayed value with the selected base type. Editing is not supported for certain objects like me, immutable JavaScript constructs like functions, variables declared as const, and undefined variables. Also, you cannot edit binary base types, including Binary Large Objects (BLOBs) and images.
Copy icon Copy Name
Copies the variable name to the clipboard.
Copy icon Copy Value
Copies the value of the variable to the clipboard.
Delete icon Delete
Removes the variable from the Watch and Terminal tabs.
Edit Watch icon Edit Watch
Allows you to edit the name and value of a variable to be watched.
Was this helpful?