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
dd5196fbfc
Blacken code.
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
6e1c7567d2
Fix #81 : Subprocess always waits for client to attach
...
Unblock subprocesses for which no notification could be sent to the client.
2020-09-25 13:41:24 -07:00
Pavel Minaev
2c524faacd
Fix #305 : Add "pythonArgs" config property for interpreter arguments
...
Expose "pythonArgs" to clients.
Make "python" usable in tests in lieu of "pythonPath", and make the runners use it.
Add tests for all combinations of "python"/"pythonPath" and "pythonArgs".
2020-08-03 11:45:55 -07:00
Pavel Minaev
73665b9af9
Parse and apply "python" / "pythonPath" in the adapter rather than in the launcher.
...
Fix errors with missing "args".
Add test for "pythonPath".
2020-05-08 17:10:34 -07:00
Pavel Minaev
2d35573eda
Fix #90 : "subProcess" is not respected
...
Propagate "subProcess" to the debug server via command line in launch scenarios.
Fix debugpy.configure() being a no-op rather than a shim for api.configure().
2020-04-01 20:10:34 -07:00
Pavel Minaev
dccb5e6198
Use "connect":{...} and "listen":{...} to indicate direction of connection in debug configuration.
2020-03-05 13:56:22 -08:00
Pavel Minaev
2d013e58ec
Swap attach_listen / attach_connect to reflect the client perspective.
2020-03-05 13:56:22 -08:00
Pavel Minaev
6ad1382a8c
Fix https://github.com/microsoft/ptvsd/issues/1824 :
...
Allow ptvsd to run as server and let code connect to it
Expose --connect and debugpy.connect() as a public API, and add tests for it.
2020-03-05 13:56:22 -08:00
Pavel Minaev
8447a15396
Refactor debugpy API and CLI for clarity and consistency.
2020-02-11 14:40:25 -08:00
Pavel Minaev
55eac82c96
Fix #1811 : tests using attach_by_pid fail on Python 2.7
...
Don't call enable_attach() and wait_for_attach() while under import lock.
2020-01-26 17:14:30 -08:00
Pavel Minaev
8b4c40e922
Rename ptvsd -> debugpy.
2020-01-17 11:57:13 -08:00
Pavel Minaev
4fb41ca083
Disable attach_to_pid tests on MacOS + Python 2.7 ( #1916 )
2019-11-19 12:05:57 -08:00
Pavel Minaev
75a7417e87
Disable attach_by_pid(wait=True) tests on Win32 and Mac due to #1926
2019-11-19 12:05:57 -08:00
Pavel Minaev
bc40fef197
Fix attach_by_pid test runner not properly waiting before running debuggee code.
2019-11-19 12:05:57 -08:00
Pavel Minaev
36485c02c6
Fix #1884 : Use sys.platform over platform.system()
2019-11-19 12:05:57 -08:00
Pavel Minaev
ca8e6a137b
Reduce default test matrix to avoid redundant tests.
2019-11-19 12:05:57 -08:00
Pavel Minaev
9b34bc0dac
Fix #1918 : ptvsd port conflicts in test runs
2019-11-15 11:55:27 -08:00
Pavel Minaev
3fc156ca32
Disable attach-to-PID tests on Travis due to #1915 .
2019-11-15 11:55:27 -08:00
Pavel Minaev
646981e4af
Fix #1810 : tests using attach_by_pid fail on Linux and macOS
...
Add time.sleep() to attach_by_pid spinning loop to give the injected code a better chance to execute.
Read and log injector output to prevent it from blocking on prints.
Improve code injection logging.
Fix race between socket.accept() backchannel listener thread, and debug.Session.close().
2019-11-15 11:55:27 -08:00
Pavel Minaev
095e5bcd5c
Fix #1713 : Adapter: multiple concurrent sessions
2019-10-30 17:12:17 -07:00
Pavel Minaev
89be0d1fce
Reformat tests.
2019-10-03 18:31:37 -07:00
Pavel Minaev
2bf8f582b2
Disable attach_by_pid where applicable ( #1810 , #1811 ).
2019-09-30 04:41:10 -07:00
Pavel Minaev
42cd8a8367
Fix tests for Python 2.7.
2019-09-30 04:41:10 -07:00
Pavel Minaev
8f358d6e0f
Refactor tests.debug to accommodate ptvsd.server spawning the adapter, and remove the need for "custom_client" and "custom_server" start methods.
...
Fix launcher not propagating debuggee exit code.
Fix attach-by-PID without explicit --log-dir overriding PTVSD_LOG_DIR (and disabling logging).
Improve test logging, with a separate directory for every test.
Various test fixes.
2019-09-26 13:20:26 -07:00