Skip to content

Settting breakpoint in pycharm #1389

Closed
Closed

Description

@kexul

Hello, thank you very much for this plugin! I'm using it in PyCharm, but there's an inconvenient part: I need to set two breakpoints for it to work, one is a regular breakpoint in PyCharm, and the other is a DAP breakpoint. Also, setting a DAP breakpoint changes the indentation of this line. Is it possible to only set the PyCharm breakpoint?

Activity

  1. angelozerr commented on Dec 5, 2025

    @angelozerr
    Contributor

    Hello, thank you very much for this plugin!

    You are welcome! Don't hesitate to add a review in JetBrains marketplace to help us to promote LSP4IJ. Thanks!

    I'm using it in PyCharm, but there's an inconvenient part: I need to set two breakpoints for it to work, one is a regular breakpoint in PyCharm, and the other is a DAP breakpoint. Also, setting a DAP breakpoint changes the indentation of this line. Is it possible to only set the PyCharm breakpoint?

    I understand that it is an annoying issue, but on LSP4IJ side we cannot do nothing since the debugpy debugger that you are using is declared with just few JSON files in https://github.com/redhat-developer/lsp4ij/tree/main/src/main/resources/templates/dap/python-debugpy

    LSP4IJ can work on any JetBrains product and have no dependency to PyCharm, so it doesn't know PyCharm breakpoint. The only solution that I see is to develop a custom plugin with LSP4IJ DAP support https://github.com/redhat-developer/lsp4ij/blob/main/docs/dap/DeveloperGuide.md and try to use PyCharm breakpoint to send info to the DAP server.

  2. kexul commented on Dec 5, 2025

    @kexul
    Author

    Hello, thank you very much for this plugin!

    You are welcome! Don't hesitate to add a review in JetBrains marketplace to help us to promote LSP4IJ. Thanks!

    I'm using it in PyCharm, but there's an inconvenient part: I need to set two breakpoints for it to work, one is a regular breakpoint in PyCharm, and the other is a DAP breakpoint. Also, setting a DAP breakpoint changes the indentation of this line. Is it possible to only set the PyCharm breakpoint?

    I understand that it is an annoying issue, but on LSP4IJ side we cannot do nothing since the debugpy debugger that you are using is declared with just few JSON files in https://github.com/redhat-developer/lsp4ij/tree/main/src/main/resources/templates/dap/python-debugpy

    LSP4IJ can work on any JetBrains product and have no dependency to PyCharm, so it doesn't know PyCharm breakpoint. The only solution that I see is to develop a custom plugin with LSP4IJ DAP support https://github.com/redhat-developer/lsp4ij/blob/main/docs/dap/DeveloperGuide.md and try to use PyCharm breakpoint to send info to the DAP server.

    Thanks for the info, I've modified the plugin so it can work with native pycharm breakpoint, with the help of AI. https://github.com/kexul/lsp4ij-main

    Yes, I'll definitely promote it in the marketplace.😄

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions