Commit graph

54 commits

Author SHA1 Message Date
Fabio Zadrozny
e44dc09f57
Make it possible to edit variables in containers through the DAP. Fixes #1385. (#1391) 2019-04-30 14:32:33 -03:00
fabioz
b44a17647b Showing pydevd logs on ptvsd failures on ci. 2019-04-29 07:58:44 -03:00
fabioz
bc7903651b Thread id from pydevd is now int32. Fixes #1331, #1339, #1332 2019-04-29 07:58:44 -03:00
Karthik Nadig
5ba6681f0c
Move source request to pydevd. Fixes #1333 (#1380)
* Move source request to pydevd

* Update test to include  sourceReference 0 case

* Check the message for sourceReference 0 case
2019-04-22 12:38:57 -07:00
Fabio Zadrozny
60da1fee41
Port stopped and continued events to pydevd. Fixes #1340, #1341 (#1373)
* Port stopped and continued events to pydevd. Fixes #1340, #1341

* Use 'ptvsd.log.exception' instead of traceback.print_exc.
2019-04-19 09:09:52 -03:00
Karthik Nadig
b26bcd0778
Set don't trace ptvsd files via json message. Fixes #1220 (#1346)
* Set dont trace ptvsd files via json message.

* Tests for set dont trace

* Cleanup and fixes

* Use custom json to generate DAP schema extensions

* Address comments

* Address more comments

* Try fix the breakpoint() issue

* Always true

* Try this

* Address comments.
2019-04-16 09:11:09 -07:00
Karthik Nadig
66deeb108e
Turn off sending continued events by default. (#1360)
* Send continued event only if needed.

* Update tests that are using continued event.

* str because python 2.7 on windows

* Address comments
2019-04-15 19:25:15 -07:00
Fabio Zadrozny
5e703f5a8f
Handle receiving old frameId. Fixes #1326 (#1352)
* Handle receiving old frameId. Fixes #1326

* Make _forward_request_to_pydevd properly properly deal with messages where success==False.
2019-04-15 08:30:16 -03:00
Fabio Zadrozny
9ec0b7afad Normalize path translation files according to client OS. Fixes #1311 (#1328)
* Fix test in pydevd.

* Normalize path translation files according to client OS. Fixes #1311
2019-04-10 18:03:51 -07:00
Karthik Nadig
87349f0f87
Ensure all output is received for tab output test (#1320) 2019-04-06 21:13:02 -07:00
Pavel Minaev
c9e5ab5b3f Fix process exit code retrieval in DebugSession. 2019-04-04 19:21:52 -07:00
Karthik Nadig
b6e83df4bb
Set correct reason when stopped on 'goto' (#1316) 2019-04-04 16:10:42 -07:00
Karthik Nadig
32e4f0ebc8
Add setting to limit number of lines in stack for exception details. Fixes #582 (#1309)
* Add maxExcpetionStackFrames setting

* Tests for maxExcpetionStackFrames setting

* Set default as all frames

* Address comments

* Fix merge issue
2019-04-04 14:51:44 -07:00
Pavel Minaev
1f7a277b93 Fix merge issue in test_raise_exception_options 2019-04-04 13:28:49 -07:00
Pavel Minaev
6a85f0e0f1 Work around test_success_exitcodes failing on Linux and Mac due to #1278. 2019-04-04 13:28:49 -07:00
Pavel Minaev
bcd4872ec5 Fix #1241: Debugging django without '--noreload' does not work
Allow user to specify exit code values that should be treated as successful for SystemExit purposes.

Special-case default success exit codes for Django.
2019-04-04 13:28:49 -07:00
fabioz
ed8f9804c2 Port SetExceptionBreakpoints DAP message to pydevd. Fixes #1287 2019-04-04 08:03:58 -03:00
Fabio Zadrozny
eaa480313b Debugger should not stop on exceptions raised in excluded files. Fixes #1268 (#1280) 2019-04-02 12:30:13 -07:00
Pavel Minaev
41d189c197 Fix #1272: Launch a SubModule (#1290)
Add sys.path entry for current directory before using runpy/importlib to resolve the module.
2019-04-01 17:16:34 -07:00
fabioz
3538b2c234 Make sure that DAP ids are int32. Fixes #1251 2019-03-25 11:33:38 -03:00
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
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
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
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
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
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
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
6feaa9536e Improving resolvers format in pydevd. #1092 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
fd2aea41f3 Fixes issue identifying ptvsd files (fixes stop on entry). #1159 (#1160) 2019-02-25 10:58:14 -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
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
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
Pavel Minaev
5acbb39f5e
Disable test_path_with_unicode for Python 3.5 per #1124 (#1135) 2019-01-31 13:53:46 -08:00
Pavel Minaev
46856c0138
Fix #1125: No-Debug run (ctrl+F5) VSCode is unable to establish connection with debugger (#1128) 2019-01-28 16:30:33 -08:00
Pavel Minaev
1bc879c16f Use pytest-xdist to speed up tests and continue running after timeout. (#1116)
* Use pytest-xdist to speed up tests and continue running after timeout.

* Use unique server ports for Django and Flask tests.
2019-01-22 16:37:00 -08:00