Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
8d102e3f
R
runtime
项目概览
dotNET Platform
/
runtime
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
8d102e3f
编写于
4月 12, 2021
作者:
A
Ankit Jain
提交者:
GitHub
4月 12, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[wasm][tests] Enable line numbers in stack traces (#50893)
上级
2ada920c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
33 addition
and
3 deletion
+33
-3
docs/workflow/testing/libraries/testing-wasm.md
docs/workflow/testing/libraries/testing-wasm.md
+6
-0
eng/testing/tests.wasm.targets
eng/testing/tests.wasm.targets
+20
-1
src/mono/wasm/build/WasmApp.targets
src/mono/wasm/build/WasmApp.targets
+5
-0
src/tasks/WasmAppBuilder/WasmAppBuilder.cs
src/tasks/WasmAppBuilder/WasmAppBuilder.cs
+2
-2
未找到文件。
docs/workflow/testing/libraries/testing-wasm.md
浏览文件 @
8d102e3f
...
...
@@ -144,6 +144,12 @@ At the moment supported values are:
By default,
`chrome`
browser is used.
## Debugging
### Getting more information
-
Line numbers: add
`/p:DebuggerSupport=true`
to the command line, for
`Release`
builds. It's enabled by default for
`Debug`
builds.
## Kicking off outer loop tests from GitHub Interface
Add the following to the comment of a PR.
...
...
eng/testing/tests.wasm.targets
浏览文件 @
8d102e3f
...
...
@@ -2,6 +2,7 @@
<!-- We need to set this in order to get extensibility on xunit category traits and other arguments we pass down to xunit via MSBuild properties -->
<PropertyGroup>
<BundleTestAppTargets>$(BundleTestAppTargets);BundleTestWasmApp</BundleTestAppTargets>
<DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(Configuration)' == 'Debug'">true</DebuggerSupport>
</PropertyGroup>
<PropertyGroup Condition="'$(RunScriptCommand)' == ''">
...
...
@@ -27,7 +28,9 @@
<UseSystemResourceKeys>true</UseSystemResourceKeys>
<EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
<DebuggerSupport>false</DebuggerSupport>
<!-- we want to default to what Blazor has, except if we are building in Debug config -->
<DebuggerSupport Condition="'$(Configuration)' != 'Debug'">false</DebuggerSupport>
</PropertyGroup>
<!-- Don't include InTree.props here, because the test projects themselves can set the target* properties -->
...
...
@@ -62,6 +65,9 @@
<WasmInvariantGlobalization>$(InvariantGlobalization)</WasmInvariantGlobalization>
<WasmGenerateRunV8Script>true</WasmGenerateRunV8Script>
<WasmNativeStrip>false</WasmNativeStrip>
<WasmNativeDebugSymbols Condition="'$(DebuggerSupport)' == 'true' and '$(WasmNativeDebugSymbols)' == ''">true</WasmNativeDebugSymbols>
<WasmDebugLevel Condition="'$(DebuggerSupport)' == 'true' and '$(WasmDebugLevel)' == ''">-1</WasmDebugLevel>
</PropertyGroup>
<ItemGroup>
...
...
@@ -79,4 +85,17 @@
<WasmFilesToIncludeInFileSystem Include="@(WasmFilesToIncludeFromPublishDir -> '$(PublishDir)%(Identity)')" />
</ItemGroup>
</Target>
<!-- linker automatically picks up the .pdb files, but they are not added to the publish list.
Add them explicitly here, so they can be used with WasmAppBuilder -->
<Target Name="AddPdbFilesToPublishList" AfterTargets="ILLink" Condition="'$(DebuggerSupport)' == 'true'">
<ItemGroup>
<_PdbFilesToCheck Include="$([System.IO.Path]::ChangeExtension('%(ResolvedFileToPublish.Identity)', '.pdb'))"
Condition="'%(ResolvedFileToPublish.Extension)' == '.dll'" />
<ResolvedFileToPublish Include="@(_PdbFilesToCheck)"
Condition="Exists(%(_PdbFilesToCheck.Identity))"
RelativePath="%(_PdbFilesToCheck.FileName)%(_PdbFilesToCheck.Extension)" />
</ItemGroup>
</Target>
</Project>
src/mono/wasm/build/WasmApp.targets
浏览文件 @
8d102e3f
...
...
@@ -20,7 +20,12 @@
- $(WasmNativeStrip) - Whenever to strip the native executable. Defaults to true.
- $(WasmLinkIcalls) - Whenever to link out unused icalls. Defaults to $(WasmBuildNative).
- $(RunAOTCompilation) - Defaults to false.
- $(WasmDebugLevel)
> 0 enables debugging and sets the debug log level to debug_level
== 0 disables debugging and enables interpreter optimizations
< 0 enabled debugging and disables debug logging.
- $(WasmNativeDebugSymbols) - Build with native debug symbols, useful only with `$(RunAOTCompilation)`, or `$(WasmBuildNative)`
Defaults to true.
- $(WasmDedup) - Whenever to dedup generic instances when using AOT. Defaults to true.
...
...
src/tasks/WasmAppBuilder/WasmAppBuilder.cs
浏览文件 @
8d102e3f
...
...
@@ -150,7 +150,7 @@ public override bool Execute ()
foreach
(
var
assembly
in
_assemblies
)
{
FileCopyChecked
(
assembly
,
Path
.
Join
(
asmRootPath
,
Path
.
GetFileName
(
assembly
)),
"Assemblies"
);
if
(
DebugLevel
>
0
)
if
(
DebugLevel
!=
0
)
{
var
pdb
=
assembly
;
pdb
=
Path
.
ChangeExtension
(
pdb
,
".pdb"
);
...
...
@@ -173,7 +173,7 @@ public override bool Execute ()
foreach
(
var
assembly
in
_assemblies
)
{
config
.
Assets
.
Add
(
new
AssemblyEntry
(
Path
.
GetFileName
(
assembly
)));
if
(
DebugLevel
>
0
)
{
if
(
DebugLevel
!=
0
)
{
var
pdb
=
assembly
;
pdb
=
Path
.
ChangeExtension
(
pdb
,
".pdb"
);
if
(
File
.
Exists
(
pdb
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录