Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move the breakpoint to the line 846.
  • Loading branch information
ilonatommy committed Nov 22, 2021
commit 809c443da09f821552589e0a5e2ea28b1e1b9faa
6 changes: 4 additions & 2 deletions src/mono/wasm/debugger/DebuggerTestSuite/BreakpointTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -662,19 +662,21 @@ await EvaluateAndCheck(
[Fact]
public async Task DebuggerAttributeStopOnDebuggerHiddenCallWithDebuggerBreakCall()
{
var bp_init = await SetBreakpointInMethod("debugger-test.dll", "DebuggerAttribute", "RunDebuggerBreak", 1);
var bp_init = await SetBreakpointInMethod("debugger-test.dll", "DebuggerAttribute", "RunDebuggerBreak", 0);
await EvaluateAndCheck(
"window.setTimeout(function() { invoke_static_method('[debugger-test] DebuggerAttribute:RunDebuggerBreak'); }, 1);",
"dotnet://debugger-test.dll/debugger-test.cs",
bp_init.Value["locations"][0]["lineNumber"].Value<int>(),
bp_init.Value["locations"][0]["columnNumber"].Value<int>(),
"RunDebuggerBreak"
);
await SendCommandAndCheck(null, "Debugger.resume",
Console.WriteLine(bp_init.Value["locations"][0]["lineNumber"].Value<int>());
var pause_location = await SendCommandAndCheck(null, "Debugger.resume",
"dotnet://debugger-test.dll/debugger-test.cs",
bp_init.Value["locations"][0]["lineNumber"].Value<int>() + 1,
bp_init.Value["locations"][0]["columnNumber"].Value<int>(),
"RunDebuggerBreak");
Console.WriteLine(pause_location["callFrames"][0]["location"]["lineNumber"]);
await SendCommandAndCheck(null, "Debugger.resume",
"dotnet://debugger-test.dll/debugger-test.cs",
834,
Expand Down