Is there a setting option that affects this operation?
When you use "Open File in Debugger", the file closes automatically in the Script Editor, but not vice versa.
If you do not close the file window in the Troubleshooter, it will remain open after you open, edit, and save the file. If you use the "Open file in debugger" function again, the old, obsolete content will remain open.
If you start the "Program-> Debug ..." function after the change, the contents of the Troubleshooting window will not be updated and the debugging will be incorrect.
It would be convenient to set the file edited in the Script Editor to close automatically in the Debugger.
S