GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
319 stars 59 forks source link

Python debugging with gunicorn doesn't work #3090

Open etanshaul opened 2 years ago

etanshaul commented 2 years ago

User reported from Slack:

Hey! Using the Cloud Code IntelliJ extension in PyCharm to try and get skaffold pydev working in IDE. It brings up my services, connects the pydev debugger just fine, etc. However, hitting any kind of exception does not appear to actually invoke the debugger, nor does setting any breakpoints. I have my mappings set up correctly, best I can tell, and I can pause the program just fine. Any further debugging tips here? Using gunicorn, as well, if relevant!

See thread for more details.

ivanporty commented 2 years ago

More from slack:

The problem is that pydevd doesn't ship with darwin arm64 .dylib https://github.com/fabioz/PyDev.Debugger/issues/200

There's a hint that FabioZ would accept patches to enable compilation for the CI system, but I don't have bandwidth to even try https://github.com/fabioz/PyDev.Debugger/pull/201#issuecomment-876651223 GitHubGitHub Can't attach debugger on native arm64 macOS machines · Issue #200 · fabioz/PyDev.Debugger

Trying to attach a debugger on native arm64 macOS fails due to pydevd_tracing.py trying to load the x86_64 version of the attach dylib. I get the following error: Traceback (most recent call last):... (56 kB) https://github.com/fabioz/PyDev.Debugger/issues/200

GitHubGitHub Add support for attaching to native arm64 on macOS by CCP-Lease · Pull Request #201 · fabioz/PyDev.Debugger This is a fix for #200 (507 kB) https://github.com/fabioz/PyDev.Debugger/pull/201#issuecomment-876651223