Skip to content

Commit 759bbce

Browse files
authored
Add news entry to document the support for remote debugging
Fixes #907
1 parent 6c17234 commit 759bbce

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

news/1 Enhancements/907.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Add prelimnary support for remote debugging using the experimental debugger.
2+
Attach to a Python program after having imported `ptvsd` and enabling the debugger to attach as follows:
3+
```python
4+
import ptvsd
5+
ptvsd.enable_attach(('0.0.0.0', 5678))
6+
```
7+
Additional capabilities:
8+
* `ptvsd.break_into_debugger()` to break into the attached debugger.
9+
* `ptvsd.wait_for_attach(timeout)` to cause the program to wait untill a debugger attaches.
10+
* `ptvsd.is_attached()` to determine whether a debugger is attached to the program.

0 commit comments

Comments
 (0)