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
Fabio Zadrozny
35203011c9
Install matplotlib on settrace. Fixes #603
2021-05-10 07:37:52 -03:00
Fabio Zadrozny
e85fdf8ab4
Sync with pydevd
2021-05-10 07:37:17 -03:00
Fabio Zadrozny
c7bb276090
Improvements to step into target. Work in progress: #576
...
Description:
- Changes the structure to create a stack from the bytecode information
so that function call names are correctly computed (this is still a work
in progress as not all bytecode instructions are currently supported).
- Support to step into function calls inside comprehensions/generators.
- Updates the bytecode dependency to 0.12.0.
Note: changes were done to the bytecode library to keep the bytecode offset.
2021-05-04 13:14:52 -07:00
Pavel Minaev
8ec0a316e6
Use ubuntu-latest to run Linux tests on CI.
...
Update apt packages before trying to install gdb.
2021-05-04 13:10:13 -07:00
Fabio Zadrozny
5c35f28473
Fix --module index on subprocess auto-attach. Fixes #533
2021-04-15 13:13:01 -03:00
Fabio Zadrozny
2ae7dc96ec
Not stopping at StopAsyncIteration exception in debugger. Fixes #541
2021-03-26 15:10:09 -03:00
Karthik Nadig
511890562a
Merge pull request #573 from karthiknadig/fix-codeql
...
Fix codeql issues
2021-03-25 13:26:56 -07:00
Karthik Nadig
d2a735c828
Fix codeql issues
2021-03-25 13:04:55 -07:00
Fabio Zadrozny
e9834c26ad
If pydevd deps cannot be imported, add itself to the PYTHONPATH. Fixes #542
2021-03-25 16:12:56 -03:00
Fabio Zadrozny
0dd74a7257
On Python 3.6 dicts retain insertion order, so, keys are no longer sorted in such cases when printing. Fixes #566
2021-03-25 14:09:35 -03:00
Fabio Zadrozny
2ebc4e71b5
Support step into target. Fixes #288
2021-03-23 08:05:55 -03:00
Fabio Zadrozny
cdc975c4fb
Improve handling of name mangling. Fixes #559
2021-03-12 09:40:29 -03:00
Fabio Zadrozny
9ab891b328
Code reloading. Fixes #212
2021-03-11 10:26:51 -03:00
Fabio Zadrozny
6ee41420e6
Sync with latest pydevd changes.
2021-03-05 08:55:39 -03:00
Pavel Minaev
ed8cc0b724
Update pipelines.yaml
...
Increase test timeout on Windows.
2021-02-22 12:51:06 -08:00
osown
4b32a3ccdd
Fix SIGINT hanndling inside debugee
2021-02-09 10:46:06 -08:00
Fabio Zadrozny
cbcfe221d7
Add object id if variable name would be duplicate. Fixes #148
2021-01-23 07:33:48 -03:00
Fabio Zadrozny
c265d74bc5
Smaller Linux .so. Fixes #169
2021-01-18 07:09:52 -03:00
Fabio Zadrozny
44a07d030e
Properly translate line in Goto Target. Fixes #150
2021-01-18 07:08:27 -03:00
Fabio Zadrozny
aa36155221
Show full stack trace on exception with __cause__ or __context__. Fixes #391
2021-01-14 11:02:08 -03:00
Fabio Zadrozny
59ee2edc49
Disable tracing at thread shutdown. Fixes #492
2021-01-05 07:09:16 -03:00