Commit graph

1945 commits

Author SHA1 Message Date
fabioz
14885763a2 Only notify about threads after cmd_version. 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
Karthik Nadig
8b5c070324
Move path mapping setup into pydevd (#1378) 2019-04-22 11:08:08 -07:00
Fabio Zadrozny
6c579c6744 Use != instead of 'is not'. Fixes #1374 (#1376) 2019-04-22 08:51:51 -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
5dbba4ac28
Move breakpoint validation into pydevd. Fixes #1335 (#1370)
* Move breakpoint validation into pydevd

* Add pydevd test
2019-04-18 11:11:04 -07:00
Karthik Nadig
1100aec537
Remove unused code (#1369)
* Remove unsued code in utils.

* Delete unused file.
2019-04-17 19:17:10 -07:00
Tyreke White
d760c0b3b8 Create TROUBLESHOOTING.md (#1363)
* Create TROUBLESHOOTING.md

This includes a list of bigger known issues as well as a standard process for filing issues.

* Update TROUBLESHOOTING.md

added line for debugger logging.

* Update TROUBLESHOOTING.md
2019-04-16 19:31:47 -07:00
Fabio Zadrozny
4706f63bae Check if file is in project with original and not translated file. Fixes #1325 (#1362) 2019-04-16 14:37:39 -07: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
Karthik Nadig
46d0c7edf7
Move stack levels to pydevd (#1351) 2019-04-12 19:32:51 -07:00
Fabio Zadrozny
69a76244bf Getting real case of files by listing dir. Fixes #1330 (#1347) 2019-04-12 19:32:35 -07: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
66bd05a7ce
Fix badge 2019-04-08 14:08: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
07fda2b10a Fix #1296 SyntaxError for breakpoints with empty condition
Treat breakpoints with `condition: ""` as non-conditional.
2019-04-05 11:40:48 -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
Fabio Zadrozny
e14917588a Django 2.2 tests and fixes for exception breakpoints in Django 1.7. Fixes #1298, #1294 (#1310)
* Django 2.2 tests and fixes for exception breakpoints in Django 1.7. Fixes #1289, #1294

* Don't report variable errors silenced by django. Fixes #1276
2019-04-04 14:57:56 -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
911f9f530c Fix #1307: Module name conflict while debugging with -m
Use threading instead of thread for IpcChannel, and do not defer its import.
2019-04-04 14:37:52 -07:00
Pavel Minaev
1f7a277b93 Fix merge issue in test_raise_exception_options 2019-04-04 13:28:49 -07:00
Pavel Minaev
d1c097f0a6 Fix JsonIOStream.read_json read loop. 2019-04-04 13:28:49 -07:00
Pavel Minaev
083f8b5f9c Fix incorrect post-exception cleanup in test_reuse_same_address_port 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
50dd2ec2c8 Fix #1279: SystemExit is detected on Python 2 but not on Python 3
Use exc_type rather than exc_desc to determine exception name.
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
Pavel Minaev
60d2512c6b Fix #1303: Partial socket reads in test_deep_stacks 2019-04-04 13:28:49 -07:00
Karthik Nadig
eac6bbe1a0
Randomize sockets to allow concurrent test runs (#1312) 2019-04-04 12:07:08 -07:00
fabioz
ed8f9804c2 Port SetExceptionBreakpoints DAP message to pydevd. Fixes #1287 2019-04-04 08:03:58 -03:00
Taeho Nam
aa4beb032d Don't fail in DictResolver when there are more items than MAX_ITEMS_TO_HANDLE. Fixes #1301 (#1292)
* Fix the size of the object to be appended to the list for normal unpacking. Fixes #1301
2019-04-04 07:58:40 -03:00
martinRenou
4a4c38c025 Fix single quote issue during process attach (#1293) 2019-04-03 19:35:20 -07: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
Fabio Zadrozny
079eb3eaff Fix issue resolving tuple with object attributes. Fixes #1277 (#1286) 2019-04-01 12:55:06 -07:00
fabioz
a2e7fd1c90 Fixed typo variableReference (should be variablesReference) and issues with getting resolvers on Jython. Fixes #1273 2019-04-01 07:39:29 -03:00
Karthik Nadig
8c405f5d62
Use pydevd path utils for comparison. Fixes #1271 (#1282)
* Use pydevd path utils for comparison

* Fix encoding before comparison
2019-03-30 15:51:12 -07:00
Karthik Nadig
35be1abb32
Use json for goto and gotoTargets request. Fixes #1221 (#1270)
* Use json for goto and gotoTargets request

* Add pydevd tests for goto and gotoTargets

* Add id maps to manage goto targets
2019-03-28 12:57:45 -07:00
Karthik Nadig
b65e15a0f3
Remove 'yield' from some request handlers (#5) (#1267)
* Remove 'yield' from some request handlers
* Fix json notify request
2019-03-26 21:30:21 -07:00
Karthik Nadig
7b0353dbe4
Remove dependency on xml or untangle. Fixes #1039. (#1263)
* Remove untangle usage from tests

* Remove untangle usage.

* Remove xml usage from ptvsd
2019-03-25 18:47:05 -07:00
Karthik Nadig
957b01002d
Add json support for exception info request. Fixes #1222 (#1260)
* Add json support for exception info request

* Add tests for json exception info request

* Address comments and minor tweaks

* Rename and fix tests

* Pass response to NetCommand
2019-03-25 10:14:09 -07:00
fabioz
3538b2c234 Make sure that DAP ids are int32. Fixes #1251 2019-03-25 11:33:38 -03:00
fabioz
da47b051b8 Fix issue quoting args and only send continued event when actually continued. Fixes #1261 2019-03-25 10:57:24 -03:00
Pavel Minaev
9c7c4615fd Fix #1173: Gracefully handle I/O errors when processing source request (#1245)
* Fix #1173: Gracefully handle I/O errors when processing source request

Try reading the file directly first, then fall back to linecache, and finally report error if nothing worked.

* Treat <...> code objects as user code, except <frozen ...>.

* Add source request tests for linecache and missing source.

* Fix test_in_project_roots to accommodate changes to <...> filename handling.
2019-03-21 10:38:39 -07: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
28ed9b3f07 Fix incorrect exception reported from escaped_exceptions() decorator. 2019-03-20 15:30:54 -07:00