debugpy/pytests
Karthik Nadig 1139b400c8
Integrate single suspend event change to master (#974)
* Provide a single notification when a breakpoint is hit. #805 (#922)

* Provide a single notification when a breakpoint is hit. #805

ptvsd requires all threads to be stopped or all threads to be running
(this is a limitation for vsts), so, we generate a single notification
when a breakpoint is hit and have CMD_GET_THREAD_STACK wait to get the
actual stack (or if the thread is not paused in a timely manner,
provide the stack as it is, but in this case it may not be possible
to get the locals or interact with the frame -- issued commands
will timeout).

* Rename CMD_SUSPEND_ON_BREAKPOINT_EXCEPTION to CMD_PYDEVD_JSON_CONFIG.

* Fixes to ptvsd tests related to differences of thread events after changes to PyDBCommandThread.

* Make ptvsd use CMD_THREAD_SUSPEND_SINGLE_NOTIFICATION and CMD_THREAD_RESUME_SINGLE_NOTIFICATION.

* Fixing tests.

* Sleep on wait_for_attach() (should be removed later) -- it seems there's still a racing condition as wait_for_attach() seems to proceed before CMD_PYDEVD_JSON_CONFIG is passed on to pydevd.

* Test changes needed to integrate 805 (#969)

* Integrate 805 initial

* Fix send suspend event to use single suspend event command

* Fix thread run event tests.

* Fix event ordering

* fix reattach tests

* Increase timeouts for some tests.

* Fix more tests

* fix typo

* Skip flaky/redundent re-attach tests

* more cleanup

* Replace completions tests with pytests

* Ensure continued is sent when the thread runs.

* Dont wait for continued in completions tests.

* Revert "Ensure continued is sent when the thread runs."

This reverts commit caef558fcf4d890d01bf3e5694b3dbc42795aaaf.

* Skip broken tests.

* Parametrize completion tests
2018-11-01 15:12:21 -07:00
..
func Integrate single suspend event change to master (#974) 2018-11-01 15:12:21 -07:00
helpers Handle case where no completions are provided by the debugger. Fixes #978 (#979) 2018-11-01 11:26:55 -07:00
__init__.py Refactor timeline: 2018-10-11 14:01:39 -07:00
conftest.py Handle case where no completions are provided by the debugger. Fixes #978 (#979) 2018-11-01 11:26:55 -07:00
test_messaging.py Refactor messaging to consistently use Request/Response/Event objects to represent both incoming and outgoing messages. 2018-10-14 21:15:35 -07:00
test_modules_manager.py Migrate modules manager, safe repr, and socket tests (#955) 2018-10-25 13:32:13 -07:00
test_safe_repr.py Migrate modules manager, safe repr, and socket tests (#955) 2018-10-25 13:32:13 -07:00
test_socket.py Fix couple of osx issues (#961) 2018-10-26 17:10:15 -07:00