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

Pass full function breakpoint options from plugin #211895

Conversation

OccasionalDebugger
Copy link
Contributor

@OccasionalDebugger OccasionalDebugger commented May 3, 2024

Fixes #211894 by modifying the chain of calls to create a new function breakpoint to accept the full range of configurable fields. This ensures that the inserted function breakpoint matches the specification provided by a plugin rather than ignoring a variety of fields.

While working on this, I noticed #209386, and I have added code to send well-formed function breakpoints at the time of their creation, so this also fixes #209386.

@OccasionalDebugger
Copy link
Contributor Author

@OccasionalDebugger please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

@OccasionalDebugger OccasionalDebugger force-pushed the improvement/more-function-breakpoint-parameters branch from abc097c to 8ca50f2 Compare May 3, 2024 01:45
@OccasionalDebugger OccasionalDebugger force-pushed the improvement/more-function-breakpoint-parameters branch from 872f095 to 47ce46b Compare May 7, 2024 13:45
@@ -223,7 +223,14 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
}));
this.debugService.addBreakpoints(uri.revive(dto.uri), rawbps);
} else if (dto.type === 'function') {
this.debugService.addFunctionBreakpoint(dto.functionName, dto.id, dto.mode);
this.debugService.addFunctionBreakpoint({
Copy link
Member

Choose a reason for hiding this comment

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

This seems fine, right @connor4312? I don't know why it would have been limited

Copy link
Member

Choose a reason for hiding this comment

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

yea, I don't either. This limitation dates from eba681f and I think it's just a bug.

@VSCodeTriageBot VSCodeTriageBot added this to the May 2024 milestone May 8, 2024
@roblourens
Copy link
Member

Thanks for the PR!

@roblourens roblourens merged commit b0c5f83 into microsoft:main May 8, 2024
6 checks passed
SimonSiefke pushed a commit to SimonSiefke/vscode that referenced this pull request May 8, 2024
* Pass full function breakpoint options from plugin

* Send newly added function breakpoints to DA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants