Commit graph

1706 commits

Author SHA1 Message Date
Karthik Nadig
3e429288c8 Update launch json 2021-10-13 11:28:43 -07:00
Pavel Minaev
9ad731d3be Run macOS tests in the macOS-10.14 pool to ensure that old Python versions are still available. 2021-10-08 11:53:44 -07:00
Fabio Zadrozny
2bd30aba7c Sync pydevd 2021-10-08 06:55:29 -03:00
Fabio Zadrozny
765b64c0a4 Don't evaluate twice if an exception is raised. Fixes #742 2021-10-08 06:55:08 -03:00
Lumir Balhar
f14ba78c5c Do not install tox into tox
Having tox as a dependency in requirements files means that
it's also installed in all the tox environments.
2021-09-28 13:29:29 -07:00
Fabio Zadrozny
0a3fa3f94d User Uncaught Exceptions always shown. Fixes #724 2021-09-23 21:14:16 -03:00
Fabio Zadrozny
02f3792636 Consider that __class__ may not really be what we expect. Fixes #699 2021-09-23 21:13:57 -03:00
Fabio Zadrozny
869babbd93 Python 3.10: support for cython and frame eval mode. 2021-09-17 16:15:03 -03:00
Steve Kowalik
9d8bb3fa3c Correct pthread library name in find_library()
ctypes.util.find_library() does not require the "lib" prefix, and may
throw an exception depending on the environment, so drop the prefix
when finding it.
2021-09-16 09:48:19 -03:00
Daniel Gerigk
5dc21d67b3
Don't interrupt debugger on flask reload (#721) 2021-09-16 09:47:25 -03:00
Pavel Minaev
7cb12bed8b Fix versioneer not updating _version.py. 2021-09-09 09:58:14 -07:00
Fabio Zadrozny
fdd1f4dc38 When possible collect try..except information from source and not bytecode. 2021-09-09 10:05:57 -03:00
Pavel Minaev
3ecfee9ffd Remove usage of setup.py --abi 2021-08-30 15:03:07 -07:00
Fabio Zadrozny
59b9db9420
Python 3.10: Improve support for detecting unhandled exceptions (work in progress). (#708) 2021-08-30 09:05:49 -03:00
Pavel Minaev
77b0a59bed Filter vendored binaries based on filename, instead of a hardcoded list. 2021-08-27 12:52:58 -07:00
Pavel Minaev
68d82b02b2 Fix #155: manylinux wheels don't pass auditwheel checks
For platform-specific wheels, do not include attach-to-PID binaries for other platforms.
2021-08-27 12:52:58 -07:00
Pavel Minaev
514e54fa2b Fix non-universal wheels incorrectly having native code under purelib. (for #155) 2021-08-20 12:28:11 -07:00
Pavel Minaev
d9ca878cd2 Build attach_linux_*.so for manylinux1 using the official containers from PyPA. 2021-08-20 12:27:28 -07:00
Fabio Zadrozny
2a2c371d98
Python 3.10: support for attach to process and set tracing to other threads. (#697)
Note: Mac i386 is no longer supported for attach to process binaries.
2021-08-19 10:53:49 -03:00
Fabio Zadrozny
3207466fc3 Python 3.10 support (work in progress).
Updated bytecode library (and other minors).
2021-08-11 10:38:48 -03:00
Pavel Minaev
e59195d6a4 Fix #579: "Cannot assign requested address" error is not being propagated to VS Code 2021-08-10 13:37:40 -07:00
Pavel Minaev
3a9f7d64c4 Assorted fixes for Python 3.10 support:
Split test/requirements.txt into two different lists, one for py2, and the other for py3; update package versions in py3 list as needed to support py3.10.

Fix usage of deprecated threading functions getName(), setName(), isDaemon(), and currentThread().

Refactor test_invalid_breakpoints to be more declarative to handle Python version differences more easily and clearly, and fix it for py3.10.

Disable Django tests on py3.10 (#689).

Disable gevent tests on py3.10 (#688).
2021-08-06 07:12:13 -03:00
Pavel Minaev
0e5b8f7a7c Fix #545: Popen CREATE_BREAKAWAY_FROM_JOB in Python while debugging causes permission error (Access Denied)
Use JOB_OBJECT_LIMIT_BREAKAWAY_OK for the launcher job.

Fix error reporting in messaging when connection closes while sending a message.
2021-08-03 14:01:22 -07:00
Fabio Zadrozny
7a9b7baef7 Sync with pydevd 2021-07-30 13:59:28 -03:00
Fabio Zadrozny
202a5efbf2 Fix issue reloading relative imports. Fixes #680 2021-07-30 13:17:36 -03:00
Fabio Zadrozny
8aa184e004 Consider files in pip-global to be library files. Fixes #664 2021-07-23 13:39:56 -03:00
Fabio Zadrozny
ae22e5e0d0 Fix error starting debugging on unsupported platforms. Fixes #669 2021-07-22 13:24:38 -03:00
Fabio Zadrozny
b826f57dbb Fix issue with step into target with LOAD_METHOD. Fixes #661 2021-07-16 14:21:28 -03:00
Fabio Zadrozny
75e5058b33 Fix focus hint on function breakpoint, set supportsFunctionBreakpoints on the debugpy side. 2021-07-15 14:10:29 -03:00
Fabio Zadrozny
d7970b80ad Support function breakpoints. Fixes #468 2021-07-15 14:10:29 -03:00
Fabio Zadrozny
623c503b58 Notify when (some) required stdlib imports are shadowed. Fixes #203 2021-07-08 08:40:13 -03:00
Fabio Zadrozny
58f97a9f15 Provide heuristics for the user to provide a library to set tracing to all threads. Fixes #617
The idea is that the user will be able to compile the target libraries/executables
so that the features below work:
- tracing to all the threads
- attach to process

Users will need to compile files in the expected location with the proper <arch>
(where <arch> == platform.machine()).

In Linux the following file is needed (see linux_and_mac/compile_linux.sh):
attach_<arch>.so

In Mac the following file is needed (see linux_and_mac/compile_mac.sh):
attach_<arch>.dylib

In Windows the following files are needed (see windows/compile_windows.bat):
attach_<arch>.dll
run_code_on_dllmain_<arch>.dll
inject_dll_<arch>.exe

Note: the actual compilation should use those compile scripts as a guide
as different platforms may require different compiler flags.
2021-07-08 08:35:39 -03:00
Karthik Nadig
0b242b21b7
Merge pull request #653 from mgorny/collections-abc
Fix deprecated import for MutableMapping and MutableSet
2021-07-06 15:24:35 -07:00
Michał Górny
eef3b4ef2b Fix deprecated import for MutableMapping and MutableSet
Starting with Python 3.3, MutableMapping and MutableSet are part
of collections.abc module rather than collections.  Importing them
from the old module is deprecated and no longer works in Python 3.10.
Support both modules conditionally for best compatibility.
2021-07-02 12:31:59 +02:00
Fabio Zadrozny
02477b5ac3 Deal with __future__ imports on python -c subprocess. Fixes #642 2021-06-17 09:38:47 -03:00
Karthik Nadig
8d90ef2a45
Merge pull request #639 from fabioz/keepalive_626
Set keepalive for all debugpy sockets. Fixes #626
2021-06-07 13:08:36 -07:00
Fabio Zadrozny
b53ebf712e Set keepalive for all debugpy sockets. Fixes #626 2021-06-04 11:20:51 -03:00
Fabio Zadrozny
11b71244c8 Don't try to monkey-patch if unexpected argument types are provided. Fixes #601 2021-06-04 10:42:11 -03:00
Fabio Zadrozny
e3f6f3ad4f Fixes for PyPy. Fixes #604 2021-06-03 08:29:19 -03:00
Fabio Zadrozny
b07f372d39 Accept duplicates in env if they map to the same value. Fixes #607 2021-06-03 08:28:31 -03:00
Fabio Zadrozny
6403f1e369 Make sure _get_path_with_real_case is called with an absolute path. Fixes #620 2021-05-28 13:26:21 -03:00
Fabio Zadrozny
ab4b9691b7 Improvements to step into target. Fixes #576 2021-05-27 09:02:28 -03:00
Pavel Minaev
cbed5de015 Use django.core.signals.request_finished to exit asynchronously after serving the response. 2021-05-26 11:50:48 -07:00
Pavel Minaev
0a7f2cd67d Fix #628: Flask tests fail because werkzeug.server.shutdown is deprecated
Use @app.teardown_request to exit asynchronously after serving the response.
2021-05-26 11:50:48 -07:00
Karthik Nadig
983d14f9fd
Merge pull request #631 from karthiknadig/update-pkgs
Update pkgs
2021-05-25 13:41:46 -07:00
Karthik Nadig
edd84da7fa formatting 2021-05-24 21:04:15 -07:00
Karthik Nadig
a5ced50c13 Update build python versions on windows 2021-05-24 21:03:04 -07:00
Karthik Nadig
ddffe8cc00 Update test OS version 2021-05-24 21:03:02 -07:00
Fabio Zadrozny
e8b3f362fb Don't compare objects prior to calling __xreload_old_new__. Fixes #615 2021-05-21 14:30:36 -03:00
Fabio Zadrozny
6921731af6 Check for Python version instead of __builtin__ module in compat. Fixes #586 2021-05-21 14:30:29 -03:00