-
Notifications
You must be signed in to change notification settings - Fork 11.6k
[trace-view] Added support for continue #19331
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
this.frameStack.frames.pop(); | ||
return this.step(false); | ||
|
||
// Do not skip to same line when stepping out as this may lead |
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.
This change is unrelated to the "continue" action implementation, but it's small enough that I decided to sneak it in as part of this PR....
} | ||
|
||
protected async launchRequest(response: DebugProtocol.LaunchResponse, args: ILaunchRequestArguments): Promise<void> { | ||
protected async launchRequest( |
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.
This (and the following) formatting changes were not necessary to achieve the stated goal of this PR but will make the code look better (as a side-note, I don't like TS auto-formatter not formatting these automatically)
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.
looks good!
## Description This PR adds support for "continue" debugger action. It also makes implementation of "next" ("step over") and "step out" actions faithful to their intended semantics (i.e., executing all instruction in a function stepped over or stepped out of). These changes do not actually change the current behavior of the viewer - they are done in preparation for implementing variable value tracking and displaying. This PR also includes a refinement of the "step out" action implementation. As also explained in the code comment, previously in the following line of code, after entering `foo` and stepping out of it, we would immediately step into `bar`, which could be quite confusing for the user: ``` assert(foo() == bar()); ``` Finally, this PR also includes some formatting changes for lines that were a bit too long ## Test plan Tested manually
Description
This PR adds support for "continue" debugger action. It also makes implementation of "next" ("step over") and "step out" actions faithful to their intended semantics (i.e., executing all instruction in a function stepped over or stepped out of). These changes do not actually change the current behavior of the viewer - they are done in preparation for implementing variable value tracking and displaying.
This PR also includes a refinement of the "step out" action implementation. As also explained in the code comment, previously in the following line of code, after entering
foo
and stepping out of it, we would immediately step intobar
, which could be quite confusing for the user:Finally, this PR also includes some formatting changes for lines that were a bit too long
Test plan
Tested manually