Skip to content

Commit

Permalink
Replace ptvsd with debugpy to match modern VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Aug 6, 2024
1 parent b1fe2d4 commit e751c89
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 38 deletions.
67 changes: 32 additions & 35 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ jwcrypto = "1.5.6"
mock = "5.0.2"
pre-commit = "3.3.3"
ptpython = "3.0.23"
ptvsd = "4.3.2"
pytest-cov = "4.1.0"
watchdog = "3.0.0"
ruff = "0.0.289"
debugpy = "^1.8.5"

[build-system]
requires = ["poetry-core"]
Expand Down
4 changes: 2 additions & 2 deletions redash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@


if os.environ.get("REMOTE_DEBUG"):
import ptvsd
import debugpy

ptvsd.enable_attach(address=("0.0.0.0", 5678))
debugpy.listen(("0.0.0.0", 5678))


def setup_logging():
Expand Down

0 comments on commit e751c89

Please sign in to comment.