Skip to content
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

Debugpy not working, and exit immediately, how can i find what problems it happens with system analysis to #1852

Closed
sunyd1006 opened this issue Mar 2, 2025 · 1 comment
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@sunyd1006
Copy link

sunyd1006 commented Mar 2, 2025

Before creating a new issue, please check the FAQ to see if your question is answered there.

Environment data

  • debugpy version: 1.4.1
  • OS and version: MacOs 15.0.1 (24A348)
  • Python version (& distribution if applicable, e.g. Anaconda): Anaconda Python 3.9.7 (default, Sep 16 2021, 08:50:36)
  • Using VS Code or Visual Studio: VS Code

Actual behavior

  1. config python project with .vscode/launch.json and go to debug

Expected behavior

  1. run python file and stop at my first breakpoints, but i see next info and no anything stop before it exits.

cd /Users/sunyindong/codespace/learn/ml_repo/d2l-zh/pytorch ; /usr/bin/env DEBUGPY_LOG_DIR=/Users/sunyi
ndong/.vscode/extensions/ms-python.debugpy-2025.0.1-darwin-arm64 /opt/homebrew/bin/python3 /Users/sunyindong/.vscode/extensions/ms-pyth
on.debugpy-2025.0.1-darwin-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 60576 -- /Users/sunyindong/codespace/learn/ml_repo
/d2l-zh/pytorch/8chapter_recurrent-neural-networks/rnn-scratch.ipynb

Steps to reproduce:

  1. XXX

debugger.vscode_7407cee1-0708-42c0-9dab-8af6bc71f84e.log

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Mar 2, 2025
@rchiodo
Copy link
Contributor

rchiodo commented Mar 3, 2025

You're attempting to debug a notebook with the 'debug current file' json. Not sure if that was your intent or not, but that won't work for debugging notebooks.

You debug notebooks from the notebook UI.

Here:

Image

@rchiodo rchiodo closed this as completed Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

3 participants