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

Support function breakpoints #258

Closed
Tracked by #1006
dgileadi opened this issue Mar 20, 2018 · 3 comments · Fixed by microsoft/java-debug#424
Closed
Tracked by #1006

Support function breakpoints #258

dgileadi opened this issue Mar 20, 2018 · 3 comments · Fixed by microsoft/java-debug#424
Assignees
Labels
breakpoint feature request voting Please vote on the issue, so that we will take priority to this issue.
Milestone

Comments

@dgileadi
Copy link

dgileadi commented Mar 20, 2018

Support and document how to set a function breakpoint.

Environment
  • Operating System: macOS 10.13.3 High Sierra
  • JDK version: 8
  • Visual Studio Code version: 1.21.1
  • Java extension version: 0.21.0
  • Java Debugger extension version: 0.7.0
Steps To Reproduce
  1. Set a function breakpoint in vscode by clicking the + button in the Breakpoints view and entering a method name from a Java class.
  2. If not already started, start a Java debug session for that code.
  3. Execute code that exercises that function.
Current Result

Execution is not paused in the debugger.

Expected Result

Execution is paused at the point when the function is called and the debugger displays information about the execution context.

Additional Information

It may be that this functionality is supported and I am simply creating the function breakpoint incorrectly. If this is the case then the readme and/or wiki should document how to correctly create a function breakpoint for Java code.

@andxu
Copy link
Contributor

andxu commented Mar 21, 2018

Thank you for bring the idea of functional bp, we only support line and limited exception bp now, the function/class bp and variable bp(break one the field is read or written) are not supported yet, please vote this one if you need this feature.

@andxu andxu added the backlog label Mar 21, 2018
@andxu andxu added the voting Please vote on the issue, so that we will take priority to this issue. label Jun 20, 2018
@wsq-7
Copy link

wsq-7 commented Sep 3, 2021

Does the plug-in support function breakpoints now?

@testforstephen
Copy link
Contributor

In 0.42.0 version, you could add a function breakpoint with the syntax FullyQualifiedClassName#methodName (e.g. java.util.ArrayList#add).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breakpoint feature request voting Please vote on the issue, so that we will take priority to this issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants