Variables in the 'Watch' window of the Debugger do not update as the code is single stepped. #504
Labels
status: waiting for information
More information must be provided before work can proceed
topic: code
Related to content of the project itself
topic: debugger
Related to the integrated debugger
type: imperfection
Perceived defect in any part of project
To see new values of the watched variables, that variable has to be added again to the Watch window.
The target Arduino Zero was connected to my PC using a Segger Mini EDU.
I set a break-point in the function of interest, which performs a shallow copy of an object. After hitting the break-point, the source and destination objects were displayed in the Watch window, the source showing expected values and the destination showing random uninitialised values. While single-stepping the code, the destination values did not change. Setting a further break-point on the function exit, the code was run until this second break-point was hit. The destination values were still unchanged in the watch window. After again adding the destination object to the Watch window, the expected correct values were seen, while the values in the destination object that was added to the Watch window before the copying still showed the old random values.
I expect to see the destination values change as the code is either single-stepped or when it stops after being run to the exit break-point.
My PC is running Windows 10 Pro 64 bit.
The Arduino IDE is 2.0.0-beta. 11
The text was updated successfully, but these errors were encountered: