-
Notifications
You must be signed in to change notification settings - Fork 66
docs: update python docs to clarify setting a breakpoint #1310
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
base: main
Are you sure you want to change the base?
docs: update python docs to clarify setting a breakpoint #1310
Conversation
|
||
After applying the run configuration, you should set a breakpoint to files which matches file mappings. | ||
Set a breakpoint in the `test.py` file: | ||
Setting a breakpoint requires two steps due to the default Python Line Breakpoint type provided by PyCharm: |
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.
I am sorry to be not clear. When you are not using PyCharm like IJ community you have not this issue.
Please separate your content in 2 sections : with and without PyCharm.
I say if you are using PyCharm you need 2 steps otherwise you can just set the breakpoint in one step with community
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.
I'm not sure I follow. I just tried using Intellij IDEA CE, created a python project, installed LSP4IJ, and configured a python-debugpy DAP. I still have take both steps to get a DAP Breakpoint. Can you show me how you are avoiding the second step?
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 problem comes from when a file can accept several breakpoint type.
If the file accept just one breakpoint type, you add te breakpoint just by clickong on the editor gutter. With IC you should not having python breakpoint type, just dap breakpoint type.
With PyCharm it provides python line breakpoint type so you need to do te 2 steps to create dap breakpoint type and not python line breakpoint type
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.
Are you seeing this behavior in Python files, or in other source code types? I am not able to see DAP Breakpoint as the one and only breakpoint type in Python files either in PyCharm, or in IDEA CE. This particular file that I'm modifying in this PR is specific to Python, correct? I'm happy to adjust the text here to be less specific, if that would be better? Something like "Setting a breakpoint may require two steps in some files due to multiple breakpoint types being defined" 🤷
Update the python docs to clarify the two steps that are required to successfully set a breakpoint that will be hit and captured by DAP.