Skip to content
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][debugger] Skip wasm frames if just my code is enabled #81732

Merged
merged 8 commits into from
Feb 16, 2023

Conversation

thaystg
Copy link
Member

@thaystg thaystg commented Feb 7, 2023

Trying to avoid stepping out when there is no source available and justmycode is enabled.
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1733523
Trying to fix this: https://stackoverflow.com/questions/74972911/blazor-wasm-debug-stops-with-frame-not-in-module

Callstack without the PR:
image

Callstack with the PR and JustMyCode enabled:
image

Callstack with the PR and JustMyCode disabled:
image

Stepping out without the PR, and you user can step out forever, it has a lot of calls.
image

Stepping out with the PR - will show pause in the JS functions.
image

TODO - Find a way to detect if it's a function from framework (dotnet.js/blazor.webassembly.js/browserLink) and skip them if JustMyCode is enabled.

@ghost
Copy link

ghost commented Feb 7, 2023

Tagging subscribers to this area: @thaystg
See info in area-owners.md if you want to be subscribed.

Issue Details

Trying to avoid stepping out when there is no source available and justmycode is enabled.

Trying to fix this: https://stackoverflow.com/questions/74972911/blazor-wasm-debug-stops-with-frame-not-in-module

Callstack without the PR:
image

Callstack with the PR and JustMyCode enabled:
image

Callstack with the PR and JustMyCode disabled:
image

Stepping out without the PR, and you user can step out forever, it has a lot of calls.
image

Stepping out with the PR - will behavior like a resume.

Author: thaystg
Assignees: thaystg
Labels:

area-Debugger-mono

Milestone: -

@thaystg thaystg marked this pull request as draft February 7, 2023 19:48
@thaystg thaystg marked this pull request as ready for review February 10, 2023 14:24
@thaystg
Copy link
Member Author

thaystg commented Feb 10, 2023

/azp run runtime-wasm-dbgtests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -198,6 +198,22 @@ protected override async Task<bool> AcceptEvent(SessionId sessionId, JObject par
await SendResume(sessionId, token);
return true;
}
case "mono_wasm_fire_debugger_agent_message_with_data":
case "_mono_wasm_fire_debugger_agent_message_with_data":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does _mono_wasm_fire_debugger_agent_message_with_data originate and can't we force to have only e.g. mono_wasm_fire_debugger_agent_message_with_data?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, I just noticed all the cases are in this convention.

@thaystg
Copy link
Member Author

thaystg commented Feb 10, 2023

/azp run runtime-wasm-dbgtests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@thaystg thaystg merged commit e927c14 into dotnet:main Feb 16, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants