It is hard to debug plugin~~ #55

Closed
opened 2026-02-16 00:19:27 -05:00 by yindo · 12 comments
Owner

Originally created by @steveGuRen on GitHub (Mar 23, 2025).

I have asked question about how to debug plugins ,but nobody know .
I think it may be a hard work to develop plugins in dify without debug support.

https://github.com/langgenius/dify/discussions/16481

https://github.com/langgenius/dify/issues/16575

Originally created by @steveGuRen on GitHub (Mar 23, 2025). I have asked question about how to debug plugins ,but nobody know . I think it may be a hard work to develop plugins in dify without debug support. https://github.com/langgenius/dify/discussions/16481 https://github.com/langgenius/dify/issues/16575
yindo closed this issue 2026-02-16 00:19:27 -05:00
Author
Owner

@steveGuRen commented on GitHub (Mar 23, 2025):

And I have try to print or log messages in my Idea, it can't work too.

@steveGuRen commented on GitHub (Mar 23, 2025): And I have try to print or log messages in my Idea, it can't work too.
Author
Owner

@steveGuRen commented on GitHub (Mar 23, 2025):

is there any possible to execute unit test for plugin in Idea?I have try to do that, but failed.

@steveGuRen commented on GitHub (Mar 23, 2025): is there any possible to execute unit test for plugin in Idea?I have try to do that, but failed.
Author
Owner

@steveGuRen commented on GitHub (Mar 23, 2025):

https://github.com/langgenius/dify-docs/issues/481
There are another disscussion about debug plugins.

@steveGuRen commented on GitHub (Mar 23, 2025): https://github.com/langgenius/dify-docs/issues/481 There are another disscussion about debug plugins.
Author
Owner

@steveGuRen commented on GitHub (Mar 23, 2025):

langgenius/dify-docs#481 There are another disscussion about debug plugins.

Install local plugin in dify is fine for me too.

@steveGuRen commented on GitHub (Mar 23, 2025): > [langgenius/dify-docs#481](https://github.com/langgenius/dify-docs/issues/481) There are another disscussion about debug plugins. Install local plugin in dify is fine for me too.
Author
Owner

@Kele2021 commented on GitHub (Mar 25, 2025):

I found some incompatibility when using the goland debugging program

@Kele2021 commented on GitHub (Mar 25, 2025): I found some incompatibility when using the goland debugging program
Author
Owner

@Yeuoly commented on GitHub (Mar 28, 2025):

Do you read https://docs.dify.ai/plugins/quick-start/debug-plugin ?
Dify supports remote debugging, and there is no need to reinstall your developing plugin everytime

@Yeuoly commented on GitHub (Mar 28, 2025): Do you read https://docs.dify.ai/plugins/quick-start/debug-plugin ? Dify supports remote debugging, and there is no need to reinstall your developing plugin everytime
Author
Owner

@steveGuRen commented on GitHub (Mar 31, 2025):

Do you read https://docs.dify.ai/plugins/quick-start/debug-plugin ? Dify supports remote debugging, and there is no need to reinstall your developing plugin everytime
I know this way and the plugin is installed ,but how to debug in PyCharm....
You can see my try : https://github.com/langgenius/dify/discussions/16481

@steveGuRen commented on GitHub (Mar 31, 2025): > Do you read https://docs.dify.ai/plugins/quick-start/debug-plugin ? Dify supports remote debugging, and there is no need to reinstall your developing plugin everytime I know this way and the plugin is installed ,but how to debug in PyCharm.... You can see my try : https://github.com/langgenius/dify/discussions/16481
Author
Owner

@Yeuoly commented on GitHub (Mar 31, 2025):

here https://www.jetbrains.com/help/pycharm/debugger-python.html

@Yeuoly commented on GitHub (Mar 31, 2025): here https://www.jetbrains.com/help/pycharm/debugger-python.html
Author
Owner

@steveGuRen commented on GitHub (Mar 31, 2025):

Image

This may work!the code : “from gevent import monkey monkey.patch_all()” have to the first execute,so it can debug now.
It's cause by gevent,but just the way of image is ok.Pycharm python debugger configuration or Enviroments is not working.

@steveGuRen commented on GitHub (Mar 31, 2025): ![Image](https://github.com/user-attachments/assets/8bdce31f-6cc0-4a71-ae0e-9cc0590f4185) This may work!the code : “from gevent import monkey monkey.patch_all()” have to the first execute,so it can debug now. It's cause by gevent,but just the way of image is ok.Pycharm python debugger configuration or Enviroments is not working.
Author
Owner

@steveGuRen commented on GitHub (Mar 31, 2025):

here https://www.jetbrains.com/help/pycharm/debugger-python.html

thanks.

@steveGuRen commented on GitHub (Mar 31, 2025): > here https://www.jetbrains.com/help/pycharm/debugger-python.html thanks.
Author
Owner

@steveGuRen commented on GitHub (Mar 31, 2025):

All configuration is below.

Image

Image

Image

@steveGuRen commented on GitHub (Mar 31, 2025): All configuration is below. ![Image](https://github.com/user-attachments/assets/ab2ff6a5-923d-45b5-9e0b-e84faa812ff9) ![Image](https://github.com/user-attachments/assets/b5dffff1-f72c-49d3-8fa8-d0b22ea09260) ![Image](https://github.com/user-attachments/assets/500a5090-988a-4b5a-adbc-741ceeb68365)
Author
Owner

@Yeuoly commented on GitHub (Mar 31, 2025):

Great!

@Yeuoly commented on GitHub (Mar 31, 2025): Great!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#55