Commit graph

1945 commits

Author SHA1 Message Date
Eric Snow
f78ffc1b3a Add request/response/event factory methods. 2018-02-13 02:00:16 +00:00
Eric Snow
85ee3ed3b7 Add TODOs about extra tests. 2018-02-13 01:19:27 +00:00
Eric Snow
98ad3461f9 Skip test_initialize(). 2018-02-13 01:13:06 +00:00
Eric Snow
07144bb440
Merge pull request #70 from ericsnowcurrently/cleaner-fakes
Clean up the fakes and add a few tests.
2018-02-12 18:04:28 -07:00
Eric Snow
c0234ec8b0 Split up test_basic.py. 2018-02-13 01:03:30 +00:00
Eric Snow
06092ca639 Add a test for "threads". 2018-02-13 00:58:09 +00:00
Eric Snow
09e05b1ee1 Send a CMD_RUN response. 2018-02-13 00:41:03 +00:00
Eric Snow
b1e6522ea6 Track capabilities. 2018-02-13 00:27:45 +00:00
Eric Snow
00791b7952 Disconnect sooner. 2018-02-13 00:27:04 +00:00
Eric Snow
e2e1cd9b1f Add config handling. 2018-02-13 00:22:26 +00:00
Eric Snow
6ae0264e35 Disconnect when done. 2018-02-12 23:24:44 +00:00
Eric Snow
b0e3c786f6 Compare by message part. 2018-02-12 23:24:01 +00:00
Eric Snow
a1cfda159a Add lifecycle tests. 2018-02-12 23:06:44 +00:00
Eric Snow
8b2c585f50 Add test helper methods. 2018-02-12 23:06:29 +00:00
Karthik Nadig
0ea43968d6
Merge pull request #51 from karthiknadig/bugs
Removes ptvsd threads from the threads list.
2018-02-12 10:28:24 -08:00
Karthik Nadig
5675623250 Addressing comments. 2018-02-12 10:27:01 -08:00
Karthik Nadig
21636ad546 Removes ptvsd threads from the threads list. 2018-02-10 10:33:48 -08:00
Eric Snow
3af4b171c7 Factor out tests.helpers.protocol.Daemon. 2018-02-10 04:00:12 +00:00
Eric Snow
2c8048953b
Merge pull request #56 from ericsnowcurrently/fakes
Add a fake for VSC and one for PyDevd, along with the first high-level test.
2018-02-09 19:15:41 -07:00
Eric Snow
d4174159a2 Add the first high-level test. 2018-02-10 02:11:30 +00:00
Eric Snow
70bcd0955a Fix PyDevd. 2018-02-10 02:10:37 +00:00
Eric Snow
8948a85943 Fix VSC. 2018-02-10 02:10:08 +00:00
Eric Snow
f72fb31d1e Properly handle EOF. 2018-02-10 02:08:56 +00:00
Eric Snow
f98cbb1616 Add PydevdSocket.makefile(). 2018-02-10 01:29:52 +00:00
Eric Snow
4f1f9c6149 Move the fakes under tests.helpers. 2018-02-09 19:48:46 +00:00
Eric Snow
2814a97098 Add the fake VSC daemon. 2018-02-09 19:38:20 +00:00
Eric Snow
10658a1db8 Support passing in a lookup function to read(). 2018-02-09 19:36:52 +00:00
Eric Snow
1fc9bfafab Add the fake pydevd daemon. 2018-02-09 19:36:20 +00:00
Karthik Nadig
0e72e9108f
Merge pull request #37 from DonJayamanne/sendTerminatedEvent
send terminated event when debugger ends
2018-02-09 10:12:22 -08:00
Eric Snow
63eada2599
Merge pull request #50 from ericsnowcurrently/fix-up
Minor cleanup.
2018-02-09 09:21:47 -07:00
Pavel Minaev
c658160bb2
Merge pull request #47 from int19h/19
Fix #19: Variable value includes type
2018-02-07 14:24:39 -08:00
Eric Snow
8912574f74 Add debugger_protocol.messages.look_up(). 2018-02-07 01:49:53 +00:00
Pavel Minaev
4692041e6a Fix #19: Variable value includes type
Use SafeRepr implementation from old version of ptvsd to format values.
2018-02-06 16:41:09 -08:00
Eric Snow
cabbc318f1 Add a README about the debugger protocol. 2018-02-06 18:30:24 +00:00
Pavel Minaev
e6bf4f3278
Merge pull request #42 from int19h/expr
Resolve #12: Arbitrary expression evaluation
2018-02-06 10:26:36 -08:00
Eric Snow
18943f410b Expose the wire-format helpers. 2018-02-06 17:37:02 +00:00
Eric Snow
a29b4ac76a Fix the Stub.add_call_exact() signature. 2018-02-06 16:24:36 +00:00
Eric Snow
3524a6e001 Clarify what start_server() and start_client are for. 2018-02-06 16:23:19 +00:00
Eric Snow
5dafa08924
Merge pull request #44 from ericsnowcurrently/proto-messages
Add all the protocol messages.
2018-02-06 02:24:44 -07:00
Eric Snow
87d7f8ec8c Add some IO-related helpers. 2018-02-06 09:23:41 +00:00
Eric Snow
cd1367fc67 Implement the request and response message types. 2018-02-06 09:23:28 +00:00
Eric Snow
fb9b4dcf0b Implement the event message types. 2018-02-06 09:21:03 +00:00
Eric Snow
ba0e9963c0 Add the base message types. 2018-02-06 09:21:03 +00:00
Eric Snow
b4abe56051 Add the debugger_protocol.messages package with a message type registry. 2018-02-06 09:21:03 +00:00
Eric Snow
49cfc12d36
Merge pull request #43 from ericsnowcurrently/fix-arg
Fix the declarative code.
2018-02-06 02:20:17 -07:00
Eric Snow
1f732ea686 Fix lint. 2018-02-06 09:19:45 +00:00
Eric Snow
b9274f074d Add MappingParameter. 2018-02-06 09:14:08 +00:00
Eric Snow
800e05cd7a Add a Mapping declaration type. 2018-02-06 08:51:59 +00:00
Eric Snow
215f91d044 Avoid infinite recursion in param_from_datatype(). 2018-02-06 04:41:14 +00:00
Eric Snow
baa3ecc084 Apply the op to the datatype before traversing. 2018-02-06 03:56:05 +00:00