mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Remove Python 3.6 support.
This commit is contained in:
parent
fb56410a65
commit
1a6c323599
4 changed files with 5 additions and 9 deletions
|
|
@ -83,14 +83,14 @@ debugpy.wait_for_client() # blocks execution until client is attached
|
|||
```
|
||||
|
||||
### `breakpoint()` function
|
||||
In Python 3.7 and above, `debugpy` supports the standard `breakpoint()` function. Use `debugpy.breakpoint()` function for similar behavior and compatibility with older versions of Python. If the debugger is attached when either of these functions is invoked, it will pause execution on the calling line, as if it had a breakpoint set. If there's no client attached, the functions do nothing, and the code continues to execute normally.
|
||||
Where available, debugpy supports the standard `breakpoint()` function for programmatic breakpoints. Use `debugpy.breakpoint()` function to get the same behavior when `breakpoint()` handler installed by debugpy is overridden by another handler. If the debugger is attached when either of these functions is invoked, it will pause execution on the calling line, as if it had a breakpoint set. If there's no client attached, the functions do nothing, and the code continues to execute normally.
|
||||
```python
|
||||
import debugpy
|
||||
debugpy.listen(...)
|
||||
|
||||
while True:
|
||||
...
|
||||
breakpoint() # or debugpy.breakpoint() on 3.6 and below
|
||||
breakpoint() # or debugpy.breakpoint()
|
||||
...
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
py36:
|
||||
python.version: "3.6"
|
||||
py37:
|
||||
python.version: "3.7"
|
||||
py38:
|
||||
|
|
@ -95,8 +93,6 @@ jobs:
|
|||
|
||||
strategy:
|
||||
matrix:
|
||||
py36:
|
||||
python.version: "3.6"
|
||||
py37:
|
||||
python.version: "3.7"
|
||||
py38:
|
||||
|
|
|
|||
4
setup.py
4
setup.py
|
|
@ -158,13 +158,13 @@ if __name__ == "__main__":
|
|||
project_urls={
|
||||
"Source": "https://github.com/microsoft/debugpy",
|
||||
},
|
||||
python_requires=">=3.6",
|
||||
python_requires=">=3.7",
|
||||
classifiers=[
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Topic :: Software Development :: Debuggers",
|
||||
"Operating System :: Microsoft :: Windows",
|
||||
"Operating System :: MacOS",
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = py{36,37,38,39,310}{,-cov}
|
||||
envlist = py{37,38,39,310}{,-cov}
|
||||
|
||||
[testenv]
|
||||
deps = -rtests/requirements.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue