sanic-org / sanic

Accelerate your web app development | Build fast. Run fast.
https://sanic.dev
MIT License
17.86k stars 1.53k forks source link

Throws an exception when I run with pycharm debug #2942

Open lmyliumingyang1011 opened 2 months ago

lmyliumingyang1011 commented 2 months ago

Is there an existing issue for this?

Describe the bug

When I start with pycharm debug it throws an exception, if it starts normally it's fine. Because I want to debug through debug,as picture: WX20240422-214046@2x

Code snippet

No response

Expected Behavior

No response

How do you run Sanic?

As a module

Operating System

MacOS

Sanic Version

v23.12.1

Additional context

No response

Charlotte3240 commented 2 months ago

I have the same problem , what should I do ?

lmyliumingyang1011 commented 2 months ago

My friend told me that he also encountered this problem, but we found that it was no problem to use the debug mode of visual studio code. Maybe pycharm is not compatible with sanic event loop? But I still want to use pycharm.在 2024年4月29日,16:17,Charlotte @.***> 写道: I have the same problem , what should I do ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Charlotte3240 commented 2 months ago

My friend told me that he also encountered this problem, but we found that it was no problem to use the debug mode of visual studio code. Maybe pycharm is not compatible with sanic event loop? But I still want to use pycharm.在 2024年4月29日,16:17,Charlotte @.> 写道: I have the same problem , what should I do ? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.>

Yes. I try it on vs code . no issue .

So, what should I config or some command on pycharm?

lmyliumingyang1011 commented 2 months ago

I also want to know the answer to this question.在 2024年4月30日,09:17,Charlotte @.***> 写道:

My friend told me that he also encountered this problem, but we found that it was no problem to use the debug mode of visual studio code. Maybe pycharm is not compatible with sanic event loop? But I still want to use pycharm.在 2024年4月29日,16:17,Charlotte @.> 写道: I have the same problem , what should I do ? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.>

Yes. I try it on vs code . no issue . So, what should I config or some command on pycharm?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

ahopkins commented 1 week ago

I have no idea what PyCharm is doing or how it is running so I cannot debug this. If you can get the run-time command perhaps we can debug it.