-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] Misc debugger improvements #68988
Conversation
.. from `DebuggerTestSuite.csproj`. This will allow other projects to use this too.
so it can be used outside the debugger tests project too. For example, with Wasm.Build.Tests+playwright .
.. using `ExceptionDispatchInfo.Capture` so we get the original stack trace.
- like logging - updated API to make it easier to use by other projects, like the upcoming wasm-app-host .
.. on the first line of the entrypoint method (`Main`). This will be useful for debugging with the upcoming wasm-app-host, along with the use of `wait-for-debugger`. Implemented by @thaystg .
If requested, then it will cause invocation of `main` to be delayed till a debugger is attached. Implemented by @thaystg
.. in the lead up to wasm-app-host tests.
.. to include templates, and provisioning props.
Tagging subscribers to 'arch-wasm': @lewing Issue Details
Extracted from #68696
|
.. project name, instead of always creating `browser.dll`, and `console.dll`.
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
cc @radekdoulik I added some minimal |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
wasm/AOT failure is NRE in linker: dotnet/linker#2789 |
.. as recommended by the documentation.
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
// FIXME: id | ||
string bpId = "bp://99999"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we do anything specific with the bp id format? If we're making one up can't we do something a little more obvious?
public MethodInfo FindEntryPoint() | ||
{ | ||
if (_entryPoint is null) | ||
_entryPoint = assemblies.Where(asm => asm.EntryPoint is not null).Select(asm => asm.EntryPoint).FirstOrDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is assemblies guaranteed to be in the correct order for this to work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assumption here is that there will be only one assembly with an entry point. If not, then yeah, the order would matter.
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Chrome debugger tests are passing. |
Extracted from #68696
Added by @thaystg:
--wait-for-debugger
- If requested, then it will cause invocation ofmain
to be delayed till a debugger is attached.Main
). This will beuseful for debugging with the upcoming wasm-app-host, along with the use of
wait-for-debugger
.