Pablo Aguiar
182683b288
Fix a broken link and a double space in README.md ( #946 )
2018-10-22 11:29:17 -07:00
Pavel Minaev
26cfd18f99
Merge pull request #939 from int19h/896-master
...
Merge changes from v4.1.4-branch into master.
2018-10-19 15:00:37 -07:00
Karthik Nadig
c5aa2a05d1
Updating test related info ( #936 )
...
* Updating test related info
* address comments
2018-10-19 13:31:16 -07:00
Pavel Minaev
2dd5f0ff0b
Fix multiproc debugging to use the new CLI syntax.
2018-10-18 16:30:52 -07:00
Pavel Minaev
1c6c71d4b9
Fix DebugSession to match the new CLI syntax.
2018-10-18 16:10:29 -07:00
Pavel Minaev
c7ee9277f3
Fix #896 : Changes in CLI arguments between versions
...
Merge changes from v4.1.4-branch into master.
2018-10-18 15:02:34 -07:00
Karthik Nadig
d3ed016094
Add subprocess library test ( #937 )
2018-10-18 15:00:53 -07:00
Karthik Nadig
e01ceb2516
pytests for django and flask ( #930 )
...
* Web frameworks tests initial
* add more no-multiproc tests
* Added multiproc flask test
* Fix linter
* non-multiproc exception tests
* Minor fixes
* more fixes.
* Improve link detection.
* Addressing comments and tweaks
* More fixes and cleanup
* Added django multiproc test with some cleanup
* Skip django multi proc for now
* fix linting
* Disable django tests for 2.7 due to unrelated gun in deugger
* More cleanup and stability
* Skip django multiproc
* Turn off flask test for py2.7 linux/mac
2018-10-18 09:44:40 -07:00
Pavel Minaev
5197e1e73f
Update README.md
...
More improvements.
2018-10-17 19:46:39 -07:00
Pavel Minaev
a4c0c32892
Update README.md
...
Fix snippets since `--host` is now required, and clarify things in general.
Fix JSON highlighting.
2018-10-17 19:31:35 -07:00
Pavel Minaev
bd220d0333
Fix #925 : Make --host a required switch
2018-10-17 13:29:09 -07:00
Karthik Nadig
85b532a7cd
Update issue templates ( #917 )
...
* Update issue templates
* Remove old issue template
2018-10-15 11:16:37 -07:00
Pavel Minaev
465f79d5e1
Fix wait_until not handling multiple new occurrences correctly.
2018-10-14 21:15:35 -07:00
Pavel Minaev
a43bb4f255
Add more test diagnostic output for expectation testing.
2018-10-14 21:15:35 -07:00
Pavel Minaev
07f45e2922
Add test diagnostic output for failure to realize expectations that are being waited on.
2018-10-14 21:15:35 -07:00
Pavel Minaev
1ad740d89e
Fix timeline wait_for and wait_for_next.
2018-10-14 21:15:35 -07:00
Pavel Minaev
90f8bac273
Fix linting issue.
2018-10-14 21:15:35 -07:00
Pavel Minaev
e32a90d601
Remove comment that is no longer applicable.
2018-10-14 21:15:35 -07:00
Pavel Minaev
50a250f1fc
Refactor messaging to consistently use Request/Response/Event objects to represent both incoming and outgoing messages.
...
Fix messaging issues uncovered by test_fuzz, and fix the test itself.
2018-10-14 21:15:35 -07:00
Pavel Minaev
5065397489
Remove test checking that CMD_PROCESS_CREATED is unsupported.
2018-10-14 21:15:35 -07:00
Pavel Minaev
d8502f9d6f
Increase timeout for test_messaging.
2018-10-14 21:15:35 -07:00
Pavel Minaev
5e593af2de
Fix tests to accommodate port=0 being legal now.
2018-10-14 21:15:35 -07:00
Pavel Minaev
24851e5f5b
Test fixes.
2018-10-14 21:15:35 -07:00
Pavel Minaev
87a3f591ff
Fix #887 : subprocess: command line rewriting
...
Add the necessary command line switches for rewriting.
Re-implement subprocess notification to properly handle detached debugger.
2018-10-14 21:15:35 -07:00
Pavel Minaev
d0ac8d6816
When channel is closed with pending requests, mark them all as failed.
...
Message channel refactoring to simply request handling.
2018-10-14 21:15:35 -07:00
Pavel Minaev
bad34258ac
Detour pydev_monkey.patch_args and construct the appropriate ptvsd command line.
2018-10-14 21:15:35 -07:00
Pavel Minaev
317e7b0657
Add missing handler for CMD_PROCESS_CREATED.
2018-10-14 21:15:35 -07:00
Pavel Minaev
5cb80239f3
Relax address validation to allow for port 0 (aka "pick any free one").
2018-10-14 21:15:35 -07:00
Pavel Minaev
7b302c73f0
Remove --multiprocess-port-range.
2018-10-14 21:15:35 -07:00
Karthik Nadig
eebb86e016
Fix to preserve frame and variable ids while stepping ( #910 )
...
* Fix to preserve frame and varaible ids while stepping
* Minor style fix.
* Update tests
2018-10-13 00:52:45 -07:00
Karthik Nadig
52aeb0fae4
Add socket reuse tests ( #911 )
...
* Add socket reuse tests
* Address comments.
2018-10-13 00:51:40 -07:00
Pavel Minaev
cbb5a51c4b
Fix #896 : Changes in CLI arguments between versions
...
Remove --server-host. Server mode is always implied by default now in all circumstances, and --client is used to specify client mode.
2018-10-12 11:42:11 -07:00
Pavel Minaev
99cd1595f8
Increase timeouts for ADO.
2018-10-11 14:01:39 -07:00
Pavel Minaev
c0cb53227e
Gracefully handle missing 'terminated' and 'exited' events on ptvsd exit regardless of Python version - also happens on 2.x sometimes.
2018-10-11 14:01:39 -07:00
Pavel Minaev
75fc537656
Disable colors on macOS as well.
2018-10-11 14:01:39 -07:00
Pavel Minaev
8288d9062a
Fix another .py/.pyc/.pyo test mismatch.
2018-10-11 14:01:39 -07:00
Pavel Minaev
4177c3eade
Fix test to account for .py/.pyc/.pyo differences in filenames.
2018-10-11 14:01:39 -07:00
Pavel Minaev
e3502cad3a
Use 'thread' timeout method for pytest for more reliable timeouts on all platforms.
2018-10-11 14:01:39 -07:00
Pavel Minaev
cc4a213056
Fix test race condition.
2018-10-11 14:01:39 -07:00
Pavel Minaev
b7a721f110
Fix #886 : ptvsd command line should support the equivalent of python -c
...
Plus some test fixes.
2018-10-11 14:01:39 -07:00
Pavel Minaev
a0fcf3bf93
Remove unnecessary proceed() calls.
2018-10-11 14:01:39 -07:00
Pavel Minaev
5efc9c5470
Refactor timeline:
...
- implicit freezing on wait
- wait_for_next() and expect_new()
- unobserved occurrences checking
- timeline slicing into intervals
- queue-based timeline for accurate timestamps
- finer-grained timeline tests
- tighen up ptvsd tests
- pretty colors!
2018-10-11 14:01:39 -07:00
Pavel Minaev
877d83c26a
Rescue license header from inappropriate refactoring :)
2018-10-11 14:01:39 -07:00
Pavel Minaev
0816cc4d2e
Log realized expectations.
2018-10-11 14:01:39 -07:00
Pavel Minaev
d5b34e6fab
Style fixes.
2018-10-11 14:01:39 -07:00
Pavel Minaev
a91412a6db
Remove unused code.
2018-10-11 14:01:39 -07:00
Pavel Minaev
a204460039
Refactor timeline framework to properly enforce concurrency-safe observations, and fix various issues discovered in the implementation of expectation algebra.
...
Refactor pattern to use == rather than 'in'.
Improve timeline logging and timestamp everything that's logged.
Do not run checks in fixture finalization if test failed.
2018-10-11 14:01:39 -07:00
Pavel Minaev
8c3269543a
Properly register initial process PID and initial launch/attach request.
2018-10-11 14:01:39 -07:00
Pavel Minaev
b2ceebac3b
Change patterns to use "==" rather than "in".
2018-10-11 14:01:39 -07:00
Pavel Minaev
7d14600c24
Fix #878 : Propagate parent process information in child process events
2018-10-11 14:01:39 -07:00