Commit graph

715 commits

Author SHA1 Message Date
Pavel Minaev
6340818a0e Enumerate installed packages & versions in the log as part of environment info. 2023-09-05 13:20:31 -07:00
Pavel Minaev
9997094101 Don't force-upgrade setuptools for test runs to avoid pkg_resources deprecation warning in gevent. 2023-09-05 13:20:31 -07:00
Pavel Minaev
88bf2c7827 Fix -Xfrozen_modules use in tests. 2023-08-28 13:14:39 -07:00
Pavel Minaev
83baa6d302 Fix -Xfrozen_modules warnings in test runs on Python 3.11 and 3.12 2023-08-17 11:00:07 -07:00
Pavel Minaev
12117683e7 Unpin greenlet in tests/requirements.txt 2023-08-16 14:58:54 -07:00
Pavel Minaev
d642538d7b Don't assume column number to be 1, since this is no longer correct in Python 3.11. 2023-08-14 14:06:06 -07:00
Pavel Minaev
35504f83ed Work around #1230
Look for more specific text in the output to avoid false positives.
2023-03-07 12:16:58 -08:00
Pavel Minaev
e9dc3e8844 Fix #1074: Use "startDebugging" request for subprocesses
Use the request if client advertises the "supportsStartDebuggingRequest" capability.
2023-02-07 13:04:58 -08:00
Pavel Minaev
9fd3e72235 Disable PYDEVD_USE_FRAME_EVAL by default. 2023-01-19 13:14:35 -08:00
Fabio Zadrozny
c419d5a7fd Don't stop on logpoints with conditions. Fixes #1146 2022-12-17 07:46:44 -03:00
Pavel Minaev
4067700ed8 Pin greenlet==1.1.3 in test dependencies due to #1126 2022-11-16 15:32:19 -08:00
Fabio Zadrozny
1d038201b3 Provide feedback/information in the debug console if attach to PID is slow. Fixes #1003 2022-10-17 07:05:09 -03:00
Fabio Zadrozny
349ff7337b Show chained exception frames in stack. Fixes #1042 2022-09-26 15:21:40 -03:00
Fabio Zadrozny
61321253e7 Use pydevd.log_to in debugpy to enable pydevd logging given the usage of debugpy.log_to. Fixes #1030 2022-09-02 08:45:20 -03:00
Pavel Minaev
4f6638b0a6 Fix #1001: Enable controlling shell expansion via "argsCanBeInterpretedByShell"
Fix #357: "argsExpansion" does not do what it says in VSCode

Treat non-array "args" in debug config as a request to prevent shell argument escaping and allow shell expansion.

Remove "argsExpansion".
2022-08-04 13:49:32 -07:00
Pavel Minaev
5da7721d4d Fix #975: Properties parameter to the configure API has become required in 1.6.1 2022-07-07 14:08:20 -07:00
Pavel Minaev
0a9b01b008 Fix #865: Debugging through poetry drops subprocess
Handle "exited" { "pydevdReason": "processReplaced" } appropriately.

Add test for os.exec() in-place process replacement.
2022-06-09 10:44:10 -07:00
Pavel Minaev
b46500c5dc Mark test secrets as placeholders for CredScan compliance. 2022-05-25 14:11:38 -07:00
Pavel Minaev
f214dbb8b4 Remove unused imports. 2022-05-23 14:01:24 -07:00
Pavel Minaev
d2aa99f56d Fix docstrings not exposed on public API. 2022-05-23 14:01:24 -07:00
Pavel Minaev
ccce63e112 Remove redundant test parameter. 2022-05-23 14:01:24 -07:00
Pavel Minaev
b0b8db12a5 Add test for wait_for_client.cancel() 2022-05-23 14:01:24 -07:00
giacomo
644c658e75 no need to use f-string 2022-05-02 00:16:19 -07:00
giacomo
a9a170bd63 re-format with black 2022-05-02 00:16:19 -07:00
giacomo
a9ea29ca22 add tests for string to nums conversion during json parsing 2022-05-02 00:16:19 -07:00
Pavel Minaev
729c02f866 Update timeline.md 2022-05-02 00:12:51 -07:00
Pavel Minaev
7623694856 Update timeline.md 2022-05-02 00:12:51 -07:00
Fabio Zadrozny
3d7499958c Make errors with conditional breakpoints clearer. Fixes #893 2022-04-22 07:32:51 -03:00
Pavel Minaev
d1e5db7d8e Use new-style super() everywhere. 2022-04-13 11:38:41 -07:00
Pavel Minaev
dd5196fbfc Blacken code. 2022-04-13 11:38:41 -07:00
Pavel Minaev
3a1ecbac86 Remove more workarounds for old Python versions. 2022-04-13 11:38:41 -07:00
Pavel Minaev
0f428178b0 Remove debugpy.compat, custom !j formatter for JSON, and related helpers. 2022-04-13 11:38:41 -07:00
Pavel Minaev
1965b47034 Get rid of fmt() and use idiomatic format() and f"" instead. 2022-04-13 11:38:41 -07:00
Pavel Minaev
98087352cb Remove code paths for unsupported Python versions. 2022-04-13 11:38:41 -07:00
Pavel Minaev
e87017e0b3 Remove redundant "from __future__ import ..." 2022-04-13 11:38:41 -07:00
Pavel Minaev
f3d9eb7853 Update timeline.md 2022-04-11 16:48:07 -07:00
Fabio Zadrozny
1b568ab86a Re-enable frame eval mode by default. 2022-04-07 10:31:14 -07:00
Fabio Zadrozny
796f63e3bc Don't print twice in evaluation if output is being already redirected. Fixes #827 2022-02-26 06:40:10 -03:00
Pavel Minaev
4f12b1b47f Remove Python 2.7 from supported implementations and update versions of test packages. 2022-02-24 12:57:56 -08:00
Fabio Zadrozny
0105bd92ce Mark warning messages as important. Fixes #170 2022-01-20 15:32:19 -03:00
Fabio Zadrozny
a07f6e8d83 Re-enable gevent test with Python 3.10. Fixes #688 2021-12-11 07:58:15 -03:00
Pavel Minaev
f4c8e487fb Remove unused import. 2021-11-03 19:00:57 -07:00
Pavel Minaev
e25fc1dcca Fix #677: Enable CI for python 3.10
Fix #689: test_django fails on py3.10

Re-enable Django tests on Python 3.10, and add it to CI runs.
2021-11-03 19:00:57 -07:00
Fabio Zadrozny
ddb083cc25 Properly validate/change django/jinja2 template breakpoints lines. Fixes #213 2021-10-26 07:53:51 -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
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
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
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
6403f1e369 Make sure _get_path_with_real_case is called with an absolute path. Fixes #620 2021-05-28 13:26:21 -03:00