Commit graph

1426 commits

Author SHA1 Message Date
Karthik Nadig
f22b8e7edd Coverage for windows and linux 2020-01-31 13:07:54 -08:00
Pavel Minaev
761570fd14
Merge pull request #21 from int19h/2053
Fix https://github.com/microsoft/ptvsd/issues/2053:
2020-01-31 12:14:11 -08:00
Karthik Nadig
39fbbd2b9c
Update azure pipelines badge 2020-01-30 22:03:20 -08:00
Pavel Minaev
fb427d1139
Merge pull request #22 from int19h/ci2
Tests and CI refactoring:
2020-01-30 21:14:20 -08:00
Pavel Minaev
4e2abc6681 Tests and CI refactoring:
Use YAML templates for setting up Python and running tests.

Use matrix instead of separate jobs for Windows 32-bit and 64-bit runs.

Change --debugpy-logs to --debugpy-log-dir with explicit destination, and use that to capture and publish test logs in CI.

Delete logs for passed tests by default, and add --debugpy-log-passed to opt out.
2020-01-30 20:43:17 -08:00
Pavel Minaev
49bb3e31d0 Fix https://github.com/microsoft/ptvsd/issues/2053:
Adapter no longer waits for the IDE to connect if all debug servers have disconnected.
2020-01-30 15:30:30 -08:00
Pavel Minaev
d4df143343
Merge pull request #19 from int19h/ci
CI tweaks and fixes
2020-01-30 12:57:34 -08:00
Pavel Minaev
1a39b14a40 Fix 32-bit Windows CI.
Make sure that linting is running on Python 3.

Clean up pipeline export artifacts in tests.yaml.
2020-01-30 12:17:59 -08:00
Pavel Minaev
7a2891b950
Merge pull request #13 from int19h/tele
Send both "ptvsd" and "debugpy" telemetry events for smooth transition.
2020-01-29 15:04:03 -08:00
Pavel Minaev
367ff72788 Send both "ptvsd" and "debugpy" telemetry events for smooth transition. 2020-01-29 14:32:28 -08:00
Fabio Zadrozny
c53bd3345a
Properly use socket module private copy for gevent support. Fixes #1641 (#6) 2020-01-29 16:18:24 -03:00
Fabio Zadrozny
4652f1042e
Make the debugger more resilient against invalid DAP messages. Fixes https://github.com/microsoft/ptvsd/issues/2050 (#10) 2020-01-29 08:12:31 -03:00
Pavel Minaev
a1e4eb3c5e
Merge pull request #12 from int19h/2052
Fix #2052: An error display in output window when debug with "Windows Application" option checked.
2020-01-28 20:17:00 -08:00
Karthik Nadig
fa65efecaa
Fix job id. 2020-01-28 19:22:31 -08:00
Karthik Nadig
a40847aa29
Fix indentation. 2020-01-28 19:18:03 -08:00
Pavel Minaev
65a4bed845 Fix https://github.com/microsoft/ptvsd/issues/2052:
An error display in output window when debug with "Windows Application" option checked.

Do not propagate debuggee's stdout and stderr to sys.stdout/stderr if the latter are missing.
2020-01-28 17:08:13 -08:00
Pavel Minaev
47398946b7
Merge pull request #11 from int19h/lint
Fix linting issues.
2020-01-28 15:13:41 -08:00
Pavel Minaev
3ce4e703ee Fix linting issues. 2020-01-28 14:43:20 -08:00
Fabio Zadrozny
2364dc2e6c
Fix PyCOND_WAIT(gil_cond). https://github.com/microsoft/ptvsd/issues/2049 (#8) 2020-01-28 16:09:21 -03:00
Pavel Minaev
ff1cc11b69
Merge pull request #9 from int19h/2055
Fix #2055: Conda activation problem on ptvsd 5.x
2020-01-28 10:43:27 -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
a90820051a
Merge pull request #7 from int19h/tests
Fix https://github.com/microsoft/ptvsd/issues/1811
2020-01-26 18:23:56 -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
24718a479d
Merge pull request #4 from int19h/3
Fix #3: Child processes aren't auto-killed reliably
2020-01-22 15:29:03 -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
Karthik Nadig
ce76dfa6c0
Merge pull request #2 from karthiknadig/master
Add tests yaml
2020-01-21 21:15:10 -08:00
Karthik Nadig
ab32799a2f Add tests yaml 2020-01-21 21:03:11 -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
2731604433 Increase timeout for adapter->server endpoints connection. 2020-01-16 13:01:01 -08:00
Pavel Minaev
2695b3f10f Fix #2038: Unable to attach docker with version 5
Fix ptvsd.adapter to respect the --host command-line switch again.
2020-01-16 13:01:01 -08:00
Fabio Zadrozny
74ff526c90 Deal with python -m<module_name> in a single parameter. Fixes #2037 2020-01-16 08:13:50 -03:00
Fabio Zadrozny
1e3705d5dc Accept bytes when patching args. Fixes #2309 2020-01-16 08:13:50 -03: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
a66e624fb4 Remove static/instance overloading for Message.cant_handle and Message.isn't_valid - doesn't work on all Python versions. 2020-01-09 15:28:00 -08:00
Pavel Minaev
5bd0e043b7 Fix #2008: Module 'ptvsd.common.log' has no attribute 'log_stderr'
Use log.stderr.levels instead.
2020-01-09 15:28:00 -08:00
Fabio Zadrozny
9c40387d03 Add symbols for the shipped binaries. Fixes #2032 (#2033) 2020-01-09 12:06:19 -08:00
Karthik Nadig
be9023847b
Add inject exe to the signing project. (#2031) 2020-01-09 11:38:24 -08:00
Pavel Minaev
9cdd098fc4
Fix logging PID mismatch between the launcher and the server 2020-01-07 17:06:20 -08:00
Fabio Zadrozny
6be0e232ea Don't show empty string when hovering over bogus word. Fixes #2011 2020-01-07 08:01:11 -03:00