Pavel Minaev
3ce4e703ee
Fix linting issues.
2020-01-28 14:43:20 -08:00
Pavel Minaev
0fb24534b6
Fix #2055 : Conda activation problem on ptvsd 5.x
...
Treat variable names as case-insensitive on Win32.
2020-01-28 10:15:13 -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
1e3fe90339
Re-enable test_wait_on_exit on Python 2.7
2020-01-22 15:52:52 -08:00
Pavel Minaev
6915757eb5
Fix #3 : Child processes aren't auto-killed reliably
...
Kill all known debuggee processes in the adapter when a "launch" session is finalized.
2020-01-22 14:58:10 -08:00
Pavel Minaev
784f7bc271
Merge pull request #1 from int19h/1776
...
Fix https://github.com/microsoft/ptvsd/issues/1776
2020-01-21 22:24:39 -08:00
Pavel Minaev
ddef96655f
Disable test_autokill due to https://github.com/microsoft/debugpy/issues/3
2020-01-21 21:43:19 -08:00
Pavel Minaev
c530c29281
Fix test_echo_and_shell
2020-01-21 17:49:02 -08:00
Pavel Minaev
a45040a4f9
Fix test_argv_quoting
2020-01-21 17:41:25 -08:00
Pavel Minaev
00b6a202f3
Fix test_autokill
2020-01-21 17:27:28 -08:00
Pavel Minaev
522c3743f0
Another workaround for https://bugs.python.org/issue37380
2020-01-21 16:33:44 -08:00
Pavel Minaev
9bb539a2fc
Work around https://bugs.python.org/issue37380 in tests.
2020-01-21 15:39:17 -08:00
Pavel Minaev
4fc36bdfb8
Move tests that aren't specific to the server one level up.
2020-01-21 02:15:37 -08:00
Pavel Minaev
40bc088bec
Rename tests/ptvsd -> tests/debugpy
2020-01-21 01:06:04 -08:00
Pavel Minaev
8b4c40e922
Rename ptvsd -> debugpy.
2020-01-17 11:57:13 -08:00
Pavel Minaev
80bd2ed93a
Fix #2026 : "Press any key" prompt appears when using Stop Debugging
...
Fix #2040 : Code continues running after Stop Debugging
Force-kill debuggee before disconnecting from the debug server if termination was requested or implied.
Don't show the wait prompt if debuggee was explicitly terminated.
Refactor tests for wait prompt to test all possible permutations in a single test.
2020-01-14 19:54:18 -08:00
Fabio Zadrozny
0149646a4d
Consider relative paths as library paths. Fixes #1946 Fixes #2027
...
This commit also makes sure that unhandled exceptions raised
in libraries are shown if some frame from its stack is in user
code (when justMyCode:true).
2020-01-10 07:02:00 -03:00
Pavel Minaev
d2964f2e9c
Disable test_systemexit on macOS due to #1988
2019-12-13 18:37:56 -08:00
Pavel Minaev
0076925d17
Improve test logging on session exit.
2019-12-13 18:37:56 -08:00
Pavel Minaev
eb50bc29df
Disable attach tests on macOS + Python 3.6 due to #1967
...
Gracefully handle server abruptly disconnecting from adapter for the initial connection.
Fix test_exclude_rules to wait until debuggee terminates.
2019-12-13 18:37:56 -08:00
Pavel Minaev
a654c9834f
Fix #1983 : Attach to process: Support pid sent as a string from the extension
...
Allow "processId" in "attach" request to be a string, if it can be parsed as int.
2019-12-13 18:37:56 -08:00
Pavel Minaev
3b71a1257a
Fix ptvsd telemetry event check in tests.
2019-12-13 12:29:34 -08:00
Pavel Minaev
e9a5b68054
Simplify options handling.
2019-12-11 20:42:01 -08:00
Pavel Minaev
0d79c16f80
Fix #1711 : adapter: access tokens
...
Generate server access token in enable_attach(), propagate it to the adapter, and have the adapter authenticate to the server via "pydevdAuthorize".
Generate client access token in adapter when not spawned by server, and propagate it to pydevd.
Fix pydevd to correctly propagate access tokens for subprocesses that are not forked.
2019-12-11 20:42:01 -08:00
Pavel Minaev
036812aef2
Re-pin Flask - still necessary.
2019-12-08 14:13:58 -08:00
Pavel Minaev
7687590f7f
Remove unused dependencies and unnecessary version pins.
2019-12-08 14:13:58 -08:00
Pavel Minaev
a3acba68d5
Tweak test log formatting to match adapter logs, and reset session ID between tests.
2019-12-08 14:13:58 -08:00
Pavel Minaev
b23031b773
Disable "redirectOutput" in tests by default.
2019-12-08 14:13:58 -08:00
Pavel Minaev
c545ccb5f8
Fix and re-enable test_reattach.
2019-12-04 09:32:59 -08:00
Pavel Minaev
7d160fc0f8
Fix and re-enable Django multiproc test.
2019-11-20 16:15:02 -08:00
Pavel Minaev
270afb8095
Fix #1900 : Ensure that the ptvsd_attach event sets the right name for child processes
2019-11-19 12:59:54 -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
d5fe978d5e
Add ResponseOccurrence.result to alias Response.result
2019-11-18 13:50:14 -08:00
Pavel Minaev
52ebb7ca1f
Fix #1886 : test_flask_breakpoint_multiproc fails with run=attach_by_socket
...
Adjust sys.path before running Flask from the stub script.
2019-11-18 13:50:14 -08:00
Pavel Minaev
fb6d35ebea
Improve failed test diagnostics.
2019-11-18 13:50:14 -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
173f9b3a48
Fix race condition in backchannel socket cleanup.
2019-11-12 18:13:25 -08:00
Pavel Minaev
e1d5543819
Fix #1875 : Inject ptvsd into subprocesses
...
Fix #1901 : Race between IDE and server connecting to the adapter
Use "evaluate" request without "frameId" to import ptvsd into the debuggee as soon as server attaches.
If the adapter is spawned by the server, wait for server to connect if IDE connects first.
Fix test_subprocess to use the new test API, and add a check for ptvsd being loaded in the child process.
2019-11-12 18:13:25 -08:00
Pavel Minaev
db7b0b64a3
Disable multiproc tests that haven't yet been refactored to use the new debug.Session API.
2019-10-30 17:12:17 -07:00
Pavel Minaev
b862bb3143
Disable attach_by_socket("api") for test_flask due to #1886
2019-10-30 17:12:17 -07:00
Pavel Minaev
c910565b9a
Blacken code.
2019-10-30 17:12:17 -07:00
Pavel Minaev
fad3c4f878
Add "from __future__ import division" to all ptvsd modules.
2019-10-30 17:12:17 -07:00
Pavel Minaev
095e5bcd5c
Fix #1713 : Adapter: multiple concurrent sessions
2019-10-30 17:12:17 -07:00
fabioz
959412a77c
Handle binary data when redirecting pydevd output. Fixes #1640
2019-10-23 10:52:25 -03:00