Commit graph

13 commits

Author SHA1 Message Date
Eric Snow
10af45bccc
A bunch of cleanup/lint fixes for the system tests. (#625)
The system tests have a number of minor formatting and structural issues that would be better to clean up sooner rather than later. This PR addresses nearly all of them.
2018-07-09 17:14:57 -06:00
Don Jayamanne
1a9112262b
Add delay waiting for socket server to start (#594)
Add delay waiting for socket server to start and port to be free
2018-07-05 14:52:43 -07:00
Don Jayamanne
83cad60ab4
Wait for socket server before connecting in Tests (#565)
* Wait for socket server
* wait for process event
* remove debug statements
2018-07-02 18:15:16 -07:00
Don Jayamanne
0ae06c77bf
Integration tests when launching debugger to debug files (#539)
Fixes #258 

Scenarios:
* Launch Files
* Launch files with custom cwd

For each of the above scenarios:
* Test output
* Test breakpoints 
* Test log points
* Test conditional breakpoints
* Test run to completion
2018-06-29 13:17:50 -07:00
Eric Snow
68f3688e1d
Add breakpoints before CMD_RUN is issued. (#521)
(fixes #448)

While #502 helped with the race between enable_attached() and adding breakpoints, there was still a small race left. This PR fixes it by CMD_RUN is not issued until after the breakpoints have been added.
2018-06-25 17:31:00 -06:00
Eric Snow
0d7e0d2656
Wait-on-exit before sending "disconnect" response. (#475)
(fixes gh-459)

We must wait-for-user before the "disconnect" response is sent. This PR fixes that.
2018-06-14 15:50:50 -06:00
Eric Snow
d498fd3582
Remove code duplication in runner.py. (#469)
(fixes gh-464)

The code in ptvsd/runner.py was originally copied from elsewhere and slightly adapted. Over time the APIs diverged, which lead to the failure in gh-464. This PR fixes the problem by getting rid of the code duplication.
2018-06-12 17:32:47 -06:00
Eric Snow
322f694601
Support re-attaching to an adapter. (#381)
(fixes #208)

Currently when ptvsd starts up (as server) it listens for a connection and shuts down when the debug session is done. This prevents re-attach. To fix this we go back to listening for a connection after getting a "disconnect" (or the client closes the connection).
2018-05-22 16:50:55 -06:00
Eric Snow
105032c3ae
Run most of the tests under Python 2. (#405) 2018-05-02 18:05:13 -06:00
Eric Snow
f0788af78f Factor out DebugAdapter.start_wrapper_script(). 2018-04-11 21:44:19 +00:00
Eric Snow
9d4e014517 Add DebugClient._connecttimeout. 2018-04-11 21:44:19 +00:00
Eric Snow
6cc5cca1fb Add DebugClient.host_local_debugger(). 2018-04-11 21:44:19 +00:00
Eric Snow
278640d0ec FakeEditor -> DebugClient. 2018-04-11 21:44:19 +00:00
Renamed from tests/helpers/editor.py (Browse further)