Changing a value during a debugger breakpoint does not work in a Blazor WASM project. This was found as part of exploratory testing.
It works correctly on chrome.
{"tag":"cdp.send","timestamp":1627073804470,"metadata":{"connectionId":0,"message":{"id":1038,"method":"Debugger.evaluateOnCallFrame","params":{"expression":"11\n//# sourceURL=eval-3b30418f.cdp\n","callFrameId":"dotnet:scope:55"},"sessionId":"7697A4FF00ACB3B73C461F183E1D04B2"}},"level":0}
{"tag":"cdp.receive","timestamp":1627073804487,"metadata":{"connectionId":0,"message":{"id":1038,"sessionId":"7697A4FF00ACB3B73C461F183E1D04B2","error":{"result":{"type":"object","subtype":"error","description":"(7,35): error CS1026: ) expected(7,35): error CS1002: ; expected","className":"CompilationError"}}}},"level":0}
{"tag":"dap.send","timestamp":1627073804488,"metadata":{"connectionId":1,"message":{"seq":97,"type":"response","request_seq":31,"command":"setVariable","success":false,"message":"Invalid expression","body":{"error":{"id":9223,"format":"Invalid expression","showUser":true}}}},"level":0}
{"tag":"dap.receive","timestamp":1627073804488,"metadata":{"connectionId":1,"message":{"type":"request","command":"setVariable","arguments":{"variablesReference":5,"name":"testDaThays","value":"11","timeout":10000},"seq":32}},"level":0}
{"tag":"cdp.send","timestamp":1627073804489,"metadata":{"connectionId":0,"message":{"id":1039,"method":"Debugger.evaluateOnCallFrame","params":{"expression":"11\n//# sourceURL=eval-703605b9.cdp\n","callFrameId":"dotnet:scope:55"},"sessionId":"7697A4FF00ACB3B73C461F183E1D04B2"}},"level":0}
{"tag":"cdp.receive","timestamp":1627073804505,"metadata":{"connectionId":0,"message":{"id":1039,"sessionId":"7697A4FF00ACB3B73C461F183E1D04B2","error":{"result":{"type":"object","subtype":"error","description":"(7,35): error CS1026: ) expected(7,35): error CS1002: ; expected","className":"CompilationError"}}}},"level":0}
{"tag":"dap.send","timestamp":1627073804506,"metadata":{"connectionId":1,"message":{"seq":98,"type":"response","request_seq":32,"command":"setVariable","success":false,"message":"Invalid expression","body":{"error":{"id":9223,"format":"Invalid expression","showUser":true}}}},"level":0}
{"tag":"dap.send","timestamp":1627073809500,"metadata":{"connectionId":1,"message":{"seq":99,"type":"event","event":"output","b
Description
Changing a value during a debugger breakpoint does not work in a Blazor WASM project. This was found as part of exploratory testing.
Reproduction Steps
Repro Steps
Expected behavior
Value does not change
Actual behavior
Actual Result
The value of currentCount can be changed
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
It works correctly on chrome.
The reason for it is:
We should receive Debugger.setVariableValue and not setVariable as we are receiving.
Looking at the log, we receive it: