Commit graph

998 commits

Author SHA1 Message Date
fabioz
fcf8cf6503 Fix set next statement with DAP. Fixes #1163 2019-03-21 10:15:22 -03:00
Pavel Minaev
6a785aba08 Disable test_argv_quoting on Python 2.7 on non-Windows platform due to #935. 2019-03-20 15:30:54 -07:00
Pavel Minaev
28ed9b3f07 Fix incorrect exception reported from escaped_exceptions() decorator. 2019-03-20 15:30:54 -07:00
Pavel Minaev
8f65903f66 Fix #1227: subprocess arguments incorrectly escaped inside the debugger
Re-implement argument quoting on Windows in accordance with
https://docs.microsoft.com/en-us/windows/desktop/api/shellapi/nf-shellapi-commandlinetoargvw
2019-03-20 15:30:54 -07:00
Karthik Nadig
4d35d20ebf
Fixes exception shown when exec throws exception. Fixes #1234 (#1246)
* Fixes exception shown when exec throws exception

* Add comment

* Add tests
2019-03-20 12:30:30 -07:00
Pavel Minaev
373f7bc871 Fix #1252: PTVSD_LOG_DIR doesn't work with VS 2019-03-20 11:47:17 -07:00
Fabio Zadrozny
6d2062bb37 Fix issues with django and jinja2 exceptions with just-my-code turned on. Fixes #1181 (#1243)
* Fix issues with django and jinja2 exceptions with just-my-code turned on. Fixes #1181

* Modules don't have __qualname__.

* Fix test to do a step out.

* Fix test for Jython.
2019-03-18 19:55:40 -07:00
Karthik Nadig
1173a2b913
Fixes #1212. Adds json requests and tests for pause, continue, and stepping (#1235)
* Switch to json requests in wrapper

* Add json handler for pause, continue, next, stepIn, and stepOut

* Tweaks to get stuff working

* Add pydevd tests for json requests

* Address comments (#4)
2019-03-14 12:24:05 -07:00
Pavel Minaev
89bec0bc68 Fix #1165: Detaching sometimes throws ValueError: I/O operation on closed file (#1236)
Gracefully handle failures when flushing potentially closed standard streams on exit.

Add more multiprocess logging, and fix sys.argv logging.
2019-03-14 10:08:20 -07:00
Fabio Zadrozny
60c3480b26 PyDev console hooks causes incompatibility with imports matplotlib and pylab. Fix for PyDev-975 (#1226) 2019-03-12 09:39:59 -07:00
Fabio Zadrozny
df028b829c sourceReference = 0 when file is mapped. Fixes #1203 (#1214) 2019-03-11 21:15:09 -07:00
Karthik Nadig
7de4f8fdf7
[WIP] Fixes #1174. Ensure keys are in hex for dicts, lists, tuples (#1225)
* Ensure keys are in hex for dicts, lists, tuples

* Restore return values test

* Addressing comments.

* Add pydevd tests and fixes
2019-03-11 19:33:36 -07:00
fabioz
2febabcbcd StackTrace request respecting just-my-code. Fixes #1187 2019-03-07 11:20:39 -03:00
Pavel Minaev
d450f57d36 Assorted test fixes. 2019-03-06 19:53:33 -08:00
Pavel Minaev
fc5b7791a0 Fix another logging issue. 2019-03-06 13:10:11 -08:00
fabioz
9aeb125e90 Fix django exception breaks. Fixes #1181 2019-03-06 08:34:35 -03:00
Pavel Minaev
5e8861f0bc Fix attach() and enable_attach() with log_dir=, and add tests for various ways to enable logging. 2019-03-05 14:32:23 -08:00
Pavel Minaev
848e534f2c
Add logging instructions 2019-03-05 12:00:05 -08:00
Pavel Minaev
a26f5d0032 Fix #890: Provide option to enable logging
Implement logging framework, and use that in place of existing ad-hoc logging.
2019-03-05 10:49:51 -08:00
Karthik Nadig
09988bf012
Ensure that stopOnEntry test checks path (#1190) 2019-03-01 17:48:58 -08:00
fabioz
f67c735592 evaluateName of __len__ should be len(x) instead of x.__len__(). Fixes #1176 2019-02-28 08:25:14 -03:00
fabioz
603ddd67cb Fix issue sorting attributes for DAP and user adding non strings to __dict__. Fixes #1183. 2019-02-28 08:25:03 -03:00
Karthik Nadig
7f06a7bde8
Add test for jmc stack frames (#1188) 2019-02-27 23:40:25 -08:00
Karthik Nadig
65719104ed
Enable delayed stack trace loading (#1182)
* Enable delayed stack trace loading.

* Fix linter.

* Addressing comments.
2019-02-26 15:08:31 -08:00
fabioz
11ffd749be Merge branch '45_json_variables' 2019-02-26 13:08:08 -03:00
Pavel Minaev
dfbb8321ef Enable discovery of ptvsd tests in VSCode. 2019-02-25 16:35:46 -08:00
fabioz
6feaa9536e Improving resolvers format in pydevd. #1092 2019-02-25 17:14:34 -03:00
fabioz
45bd1daa0b Silence error during debugger shutdown. 2019-02-25 17:14:34 -03:00
fabioz
2d060f7b0f Support scopes, stackTrace, setVariable, evaluate, setExpression and modules DAP messages in pydevd. #1092 2019-02-25 17:14:34 -03:00
Pavel Minaev
2bb23bc698 Fix #18: Set Next Statement 2019-02-25 12:06:16 -08:00
Fabio Zadrozny
19aaa3b178 Don't give error redirecting output with pythonw. Fixes #1023. (#1161) 2019-02-25 10:58:45 -08:00
Fabio Zadrozny
fd2aea41f3 Fixes issue identifying ptvsd files (fixes stop on entry). #1159 (#1160) 2019-02-25 10:58:14 -08:00
Karthik Nadig
4f0659a4b5
Add version badge (#1169) 2019-02-25 10:48:46 -08:00
Karthik Nadig
6006fe57a1
Fixes #1048. Enable reattach test with fixes (#1156)
* Enable reattach test with fixes

* Address comments
2019-02-19 21:30:26 -08:00
Pavel Minaev
e64430ae31 Add comment explaining how get_code_lines() works. 2019-02-14 20:36:18 -08:00
Pavel Minaev
93225fd0f9 Fix test_add_and_remove_breakpoint. 2019-02-14 20:36:18 -08:00
Pavel Minaev
43816065a4 Fix #206: Validate breakpoint targets
When setting breakpoints, validate line numbers against dis.findlinestarts() for the given file.
2019-02-14 20:36:18 -08:00
Karthik Nadig
bfb6b0a596
Ensure we listen for subprocess ports if --multiprocess flag is used. (#1153) 2019-02-14 13:21:43 -08:00
Karthik Nadig
30ae5434f0
Add more tests (#1149)
* Add django template exception tests

* Add flask template exception tests
2019-02-12 13:58:07 -08:00
Pavel Minaev
ea2310f3a6 Fix #1009: Provide a public API to register threads not created by Python for debugging 2019-02-11 21:08:42 -08:00
Pavel Minaev
41462087c3 Add support for named line markers to pyfile() fixture. 2019-02-11 18:39:26 -08:00
Pavel Minaev
a8309a3742 Fix #841: BreakOnSystemExitZero debug option is not respected 2019-02-11 18:39:26 -08:00
Karthik Nadig
32a2527291
Add test for attach using pid (#1145) 2019-02-11 12:23:39 -08:00
Fabio Zadrozny
16b4284132 Fix: #1142: Log points treated as breakpoints. (#1143) 2019-02-08 08:22:44 -08:00
Karthik Nadig
6a9646d4df
Add some tests for recent fixes (#1140)
* Add and remove breakpoint test

* Enable package launch test

* Address comments.

* tweak

* wait only for the last output event.
2019-02-06 17:56:59 -08:00
Karthik Nadig
70839a53ce
Increase max io msg size (#1139) 2019-02-04 20:37:17 -08:00
Pavel Minaev
07dc5e4a7d
Fix #1093: breakpoint are not hit when debugger is attached to remote target (#1137)
Do not allow 'setBreakpoints' request until either 'launch' or 'attach' request is received.

Wait for 'launch' or 'attach' request to process path mappings before handling 'setBreakpoints'.
2019-01-31 19:01:56 -08:00
Pavel Minaev
5acbb39f5e
Disable test_path_with_unicode for Python 3.5 per #1124 (#1135) 2019-01-31 13:53:46 -08:00
Fabio Zadrozny
4f7abaddd9 Exclude files from being debugged. #997 (#1119) 2019-01-31 12:27:14 -08:00
Fabio Zadrozny
49721a70e2 Check that removing breakpoints works properly. #1126 (#1134) 2019-01-29 07:38:07 -08:00