Skip to content

Conversation

scweber-cisco
Copy link

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.

@scweber-cisco scweber-cisco changed the title update python docs to clarify setting a breakpoint docs: update python docs to clarify setting a breakpoint Oct 2, 2025

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:
Copy link
Contributor

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

Copy link
Author

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?

Copy link
Contributor

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

Copy link
Author

@scweber-cisco scweber-cisco Oct 8, 2025

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" 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants