Commit graph

1819 commits

Author SHA1 Message Date
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
Fabio Zadrozny
6b276e339c Step in/step over support for IPython. Fixes #869 2022-08-03 08:01:43 -03:00
Fabio Zadrozny
a294092d9c Properly stop at line 1 in frame eval mode. Fixes #995 2022-07-30 07:24:29 -03:00
Fabio Zadrozny
db43846a8d Properly consider that argv[0] may be None. Fixes #987 2022-07-14 15:44:25 -03:00
Fabio Zadrozny
b31dee3e79 Synchronize some minor changes from pydevd. 2022-07-14 15:44:01 -03:00
Kira Bruneau
d117b091c5 Fix compiling attach library from source 2022-07-14 13:46:21 -03:00
Fabio Zadrozny
b5072f33af Fix test_bytecode_manipulation in Python 3.10.5. Fixes #973 2022-07-09 07:19:42 -03: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
Fabio Zadrozny
3f325f58dc Protect against exception in linecache.getline. Fixes #969 2022-07-07 14:08:07 -07:00
Fabio Zadrozny
4f2a4568f0 Support for Python 3.11: cython. WIP #939 2022-07-06 09:17:50 -03:00
Fabio Zadrozny
161aa2683f Starting to add support for Python 3.11. WIP #939
Added support for setting tracing to different threads
along with some general fixes.

Main things missing:
- Compile with cython extensions
- Bytecode manipulation
- Frame eval mode (requires bytecode manipulation)
2022-06-30 10:41:40 -03:00
Pavel Minaev
7676e298b5 Fix #731: "externalTerminal" does not work on Linux
Do not wait for "runInTerminal" response when spawning the launcher.
2022-06-28 19:13:35 -07:00
Pavel Minaev
627bc1d647 Fix #934: Log output stuck when printing emoji to internalConsole with python
Gracefully handle encoding and write errors in the launcher when capturing output.
2022-06-22 10:29:36 -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
Fabio Zadrozny
6d049b73ab Auto-attach to subprocess with .zip targets. Fixes #945 2022-06-06 14:14:40 -03:00
Pavel Minaev
e94b71925a Exclude vendored pydevd from PoliCheck. 2022-05-25 14:54:33 -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
Pavel Minaev
eb126910c0 Add type annotations to public API. 2022-05-23 14:01:24 -07:00
Duprat
891bc7f88b Update handlers.py
* Remove named constant
* move test when not "noDebug": false
2022-05-23 12:39:05 -07:00
Duprat
3e90c5a903 Update handlers.py
Add "-X=frozen_modules=off" to cpython interpreter when version==3.11
2022-05-23 12:39:05 -07:00
Jan
78b030f509
Fix TypeError in NetCommandFactoryJson.make_get_thread_stack_message() (#928)
Set startFrame and levels to 0 if None to avoid TypeError
2022-05-19 16:18:26 -03:00
Fabio Zadrozny
0a40cabe6f Provide option to resolve symlinks when sending paths to the client. Fixes #743 2022-05-02 08:26:45 -03:00
giacomo
57836de416 improve code readability for sonarcloud checks 2022-05-02 00:16:19 -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
giacomo
7597e466c4 more flexible logic that try converting str to number with all classinfo and fall back on error message when not successfull 2022-05-02 00:16:19 -07:00
giacomo
50632736bf re-format with black 2022-05-02 00:16:19 -07:00
giacomo
eb8095cbe6 add automatic conversion from string to int/float type, during type checks 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
eaadb6c681 Show warnings evaluating in repl. Fixes #774 2022-04-23 07:43:52 -03:00
Fabio Zadrozny
3d7499958c Make errors with conditional breakpoints clearer. Fixes #893 2022-04-22 07:32:51 -03:00
Fabio Zadrozny
e615771b24 Breakpoint log messages should be printed when stepping too. Fixes #705 2022-04-22 07:31:02 -03:00
Fabio Zadrozny
6174f4c4bd Don't call frame.f_locals multiple times when assigning locals after evaluation. Fixes #915 2022-04-22 07:30:04 -03:00
Fabio Zadrozny
7be59933b1 If pandas has lower defaults for repr, use them. Fixes #889 2022-04-15 14:50:15 -03:00
Fabio Zadrozny
de58062f83 Handle case where client may send files with different casing. Fixes #896 2022-04-15 07:51:47 -03:00
Pavel Minaev
87facf1378 Fix CodeQL GitHub permissions. 2022-04-13 12:24:00 -07: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
cb25e2f106 Fix version check on Python 2. 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
a6d63ce760 Add version check. 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