-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python Debugger stops in first few seconds without output #1283
Comments
The one difference between Intel and ARM Macs would be that the latter don't get the optimized native-code debugger bits. However, pure Python debugger is generally more stable (but slower), so it is surprising to see it crash if that is what's happening here. Try setting |
Is the only error-ihsh output I can find, this one I find in |
This one indicates running outside of a terminal, but this is expected for "internalConsole", and is not actually an error.
|
I see. This is the last couple of lines of such a session:
Don't think that really helps? Was thinking I feel the answer is obvious if we know why it's exiting though, should it not just tell that somewhere, why? Even if some kind of stack trace or obscure dump? |
If it were exiting cleanly then yes, this should be visible in the logs. The fact that the log is cut abruptly like that generally implies a hard crash, not even on Python level but something like a segfault. I'm not too familiar with macOS, but it seems that any such crashes should be recorded by the OS itself and show up in |
https://gist.github.com/GlenDC/9469f01b4aa6eafa5e075afcfff2cba6 That's an example. I see |
Wiped my entire pyenv and virtualenv code. Still same thing... still crashes at start up and still not any closer to knowing why. |
Tried upgrading Python to 3.11, and upgrade all dependencies of my project... |
Running the same script with same args using |
You can choose to close the issue if you want. I can once again debug, but don't ask me how, as I'm not sure. Today if just works all of a sudden just again... Things that have changed recently (as I didn't try it in some weeks):
So yeah, no clue what changed, but it works again. |
Type: Bug
Hello!
I’m on the following specs:
I have my custom setup to debug Scrapy-based scraping software written in Python:
This always worked great for me, until I switched to an M2 mac (coming from an intel one).
Now the debugger just exits immediately in the first 3 seconds, while it always worked before…
The thing is, I am confident the issue is somewhere on my host system’s end, e.g. perhaps something
that went wrong in the assisted migration between my two develoment machines, with some binary or something
still bundled for intel rather than arm64.
However, its’ guess work as I do not see any output. Is there somewhere where I can see WHY the debugger exited?
I was looking through the output panes but couldn’t find something from the debugger? Surely I must be able to find somewhere
the reason why it went wrong, no? (
Extension version: 2023.6.1
VS Code version: Code 1.77.3 (Universal) (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:19:37.325Z)
OS version: Darwin arm64 22.4.0
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
The text was updated successfully, but these errors were encountered: