[wasm][debugger] Improvement of memory consumption while Evaluating Expressions (#61470)
* Fix memory consumption.
* Fix debugger-tests
* Fix compilation.
* Addressing @lewing PR.
* Address @lewing comment
* Addressing @radical comment.
* Addressing comments.
* Addressing @radical comments.
* missing return.
* Addressing @radical comments
* Adding test case
Co-authored-by: Larry Ewing <lewing@microsoft.com>
* Fixing tests.
* Adding another test case. Thanks @lewing.
* Reuse the script.
Co-authored-by: Larry Ewing <lewing@microsoft.com>