Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
495a6207
R
runtime
项目概览
dotNET Platform
/
runtime
大约 1 年 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
495a6207
编写于
8月 08, 2022
作者:
T
Thays Grazia
提交者:
GitHub
8月 08, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Create a method to compare previous frames on call stack for firefox. (#73000)
上级
b61c6f6f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
4 deletion
+15
-4
src/mono/wasm/debugger/DebuggerTestSuite/BreakpointTests.cs
src/mono/wasm/debugger/DebuggerTestSuite/BreakpointTests.cs
+3
-3
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs
+5
-0
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestFirefox.cs
...no/wasm/debugger/DebuggerTestSuite/DebuggerTestFirefox.cs
+7
-1
未找到文件。
src/mono/wasm/debugger/DebuggerTestSuite/BreakpointTests.cs
浏览文件 @
495a6207
...
...
@@ -822,7 +822,7 @@ public async Task CreateGoodBreakpointAndHitGoToWasmPageWithoutAssetsComeBackAnd
);
}
[
ConditionalTheory
(
nameof
(
RunningOnChrome
))
]
[
Theory
]
[
InlineData
(
"IDefaultInterface"
,
"DefaultMethod"
,
"Evaluate"
,
"DefaultInterfaceMethod.Evaluate"
,
1087
,
1003
,
1001
,
1005
)]
[
InlineData
(
"IExtendIDefaultInterface"
,
"IDefaultInterface.DefaultMethodToOverride"
,
"Evaluate"
,
"DefaultInterfaceMethod.Evaluate"
,
1088
,
1047
,
1045
,
1049
)]
[
InlineData
(
"IDefaultInterface"
,
"DefaultMethodAsync"
,
"EvaluateAsync"
,
"System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<IDefaultInterface.<DefaultMethodAsync>d__3>"
,
37
,
1016
,
1014
,
1018
)]
...
...
@@ -844,7 +844,7 @@ public async Task CreateGoodBreakpointAndHitGoToWasmPageWithoutAssetsComeBackAnd
// check prev frame in DIM
Assert
.
Equal
(
pauseInDim
[
"callFrames"
][
1
][
"functionName"
].
Value
<
string
>(),
prevFrameInDim
);
Assert
.
Equal
(
pauseInDim
[
"callFrames"
][
1
][
"location"
][
"lineNumber"
].
Value
<
int
>()
,
evaluateAsPrevFrameLine
);
CheckLocationLine
(
pauseInDim
[
"callFrames"
][
1
][
"location"
]
,
evaluateAsPrevFrameLine
);
string
funCalledFromDim
=
"MethodForCallingFromDIM"
;
var
bpFunCalledFromDim
=
await
SetBreakpointInMethod
(
"debugger-test.dll"
,
"DefaultInterfaceMethod"
,
funCalledFromDim
,
1
);
...
...
@@ -858,7 +858,7 @@ public async Task CreateGoodBreakpointAndHitGoToWasmPageWithoutAssetsComeBackAnd
string
prevFrameFromDim
=
dimName
;
Assert
.
Equal
(
pauseInFunCalledFromDim
[
"callFrames"
][
1
][
"functionName"
].
Value
<
string
>(),
dimClassName
+
"."
+
prevFrameFromDim
);
Assert
.
Equal
(
pauseInFunCalledFromDim
[
"callFrames"
][
1
][
"location"
][
"lineNumber"
].
Value
<
int
>()
,
dimAsPrevFrameLine
);
CheckLocationLine
(
pauseInFunCalledFromDim
[
"callFrames"
][
1
][
"location"
]
,
dimAsPrevFrameLine
);
async
Task
CheckDefaultMethod
(
JObject
pause_location
,
string
methodName
)
...
...
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestBase.cs
浏览文件 @
495a6207
...
...
@@ -272,6 +272,11 @@ internal virtual void CheckLocation(string script_loc, int line, int column, Dic
Assert
.
Equal
(
expected_loc_str
,
loc_str
);
}
internal
virtual
void
CheckLocationLine
(
JToken
location
,
int
line
)
{
Assert
.
Equal
(
location
[
"lineNumber"
].
Value
<
int
>(),
line
);
}
internal
void
CheckNumber
<
T
>(
JToken
locals
,
string
name
,
T
value
)
{
foreach
(
var
l
in
locals
)
...
...
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestFirefox.cs
浏览文件 @
495a6207
...
...
@@ -118,7 +118,6 @@ internal override async Task<Result> SetBreakpoint(string url_key, int line, int
locals_fn
:
locals_fn
);
}
internal
override
void
CheckLocation
(
string
script_loc
,
int
line
,
int
column
,
Dictionary
<
string
,
string
>
scripts
,
JToken
location
)
{
if
(
location
==
null
)
//probably trying to check startLocation endLocation or functionLocation which are not available on Firefox
...
...
@@ -135,6 +134,13 @@ internal override void CheckLocation(string script_loc, int line, int column, Di
Assert
.
Equal
(
expected_loc_str
,
loc_str
);
}
internal
override
void
CheckLocationLine
(
JToken
location
,
int
line
)
{
if
(
location
==
null
)
//probably trying to check startLocation endLocation or functionLocation which are not available on Firefox
return
;
Assert
.
Equal
(
location
[
"lineNumber"
].
Value
<
int
>(),
line
+
1
);
}
private
JObject
ConvertFirefoxToDefaultFormat
(
JArray
frames
,
JObject
wait_res
)
{
var
callFrames
=
new
JArray
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录