In the Environment Pane, If a variable is added or changed after starting a Debug session
Short of that being possible, it might be good to explain or emphasize in the help that you can change the environment in an active Debug session but that you must apply the changes for them to take effect. (The help has numerous examples of where "Gotchas" are documented to help users not shoot themselves in the foot.)
Also, this works differently in the Batch Parameters pane where adding or updating a parameter while a script is executing is seen by the debugger without having to Apply the change. This behavior (if it's intended) should also be added to the documentation. And if the Reset/Apply button is not needed for the Batch Parameters pane, should that button even appear there?
- Continuing to execute the code (e.g. Step Into, or run to Breakpoint) will not see the new/changed variable, but it will still be displayed in the window
- I think it's kind of non-intuitive if I make a change to the environment, (but don't "Apply" the changes) that the changes are shown but are not actually what is in the environment.
Short of that being possible, it might be good to explain or emphasize in the help that you can change the environment in an active Debug session but that you must apply the changes for them to take effect. (The help has numerous examples of where "Gotchas" are documented to help users not shoot themselves in the foot.)
Also, this works differently in the Batch Parameters pane where adding or updating a parameter while a script is executing is seen by the debugger without having to Apply the change. This behavior (if it's intended) should also be added to the documentation. And if the Reset/Apply button is not needed for the Batch Parameters pane, should that button even appear there?