[wasm][debugger] Implement support to Set Next Instruction Pointer. (#64114)
authorThays Grazia <thaystg@gmail.com>
Wed, 2 Feb 2022 17:35:59 +0000 (14:35 -0300)
committerGitHub <noreply@github.com>
Wed, 2 Feb 2022 17:35:59 +0000 (14:35 -0300)
commite696cbae2a6e96b3cee59a8c7772fba569572061
tree8fa3fb1a87752af2ee652c7cf0548ce7f802c1b7
parentc989508e0f45ec45b58d1aed1351a139738662ad
[wasm][debugger] Implement support to Set Next Instruction Pointer. (#64114)

* Implement Set Next Instruction Pointer.

* Addressing @radical comments.

* Checking if the line number is inside the same function.
Adding test for it.
Adding test for moving the IP to a line that has already a breakpoint.

* Creating tests in async function and lambda as suggested by @radical

* Addressing @radical comments.

* Addressing @radical comments offline

* Adding comment to explain dual invocations.

* Removing unnecessary code.

* Addressing @radical comments.

* Update src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs

Co-authored-by: Ankit Jain <radical@gmail.com>
* Addressing @radical comments.

* Apply suggestions from code review

Co-authored-by: Ankit Jain <radical@gmail.com>
* Removing unnecessary code.Addressing @radical comments.

* Addressing @radical comments.

* Added test as suggested offline by @radical

* Creating tests as suggested by @radical.

* Adding test as suggested by @radical.
Fixing behavior of this new test: moving IP to a nested function.

* Changing order in test.

* Creating new test suggested by @radical.

* Update src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs

Co-authored-by: Ankit Jain <radical@gmail.com>
* Addressing @radical comments.

* Addressing @radical comments.

Co-authored-by: Ankit Jain <radical@gmail.com>
eng/testing/scenarios/WasmDebuggerTestsJobsList.txt
src/mono/mono/component/debugger-agent.c
src/mono/wasm/debugger/BrowserDebugProxy/DebugStore.cs
src/mono/wasm/debugger/BrowserDebugProxy/DevToolsHelper.cs
src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs
src/mono/wasm/debugger/DebuggerTestSuite/SetNextIpTests.cs [new file with mode: 0644]
src/mono/wasm/debugger/tests/debugger-test/debugger-async-test.cs