Commit graph

1945 commits

Author SHA1 Message Date
Karthik Nadig
a7666a2ba4
Merge pull request #417 from karthiknadig/bin2
Compile with Qspectre
2020-09-21 22:41:59 -07:00
Karthik Nadig
e0c2d14f09
Merge pull request #409 from karthiknadig/bin1
Update nuget packages.
2020-09-21 13:44:44 -07:00
Karthik Nadig
b6ebb18313 Build binaries with new compiler flags 2020-09-21 13:23:14 -07:00
Karthik Nadig
5f08b324e8 Compile with Qspectre 2020-09-21 13:19:16 -07:00
Karthik Nadig
97d9d39c64 Revert "Compile with Qspectre"
This reverts commit 57d3eadc8a.
2020-09-21 13:16:16 -07:00
Karthik Nadig
57d3eadc8a Compile with Qspectre 2020-09-21 13:13:14 -07:00
bob-white
7859f5c4b2
Makes the listen process configurable. (#387)
Allow the use of "python" in debugpy.configure() for attach scenarios.
2020-09-21 12:54:56 -07:00
Pavel Minaev
562afbcde0 Fix #414: test_invalid_breakpoints fails on Python 3.9
Adjust expected line numbers in test to reflect Python changes.
2020-09-21 12:24:47 -07:00
Karthik Nadig
b81ca97d96 Update nuget packages. 2020-09-11 01:42:30 -07:00
Karthik Nadig
d3cb68f21a
Merge pull request #406 from karthiknadig/bin1
More compiler tweaks
2020-09-10 15:08:18 -07:00
Karthik Nadig
b8f45cec71
Merge pull request #393 from karthiknadig/cg1
Update TPN and add cgmenifest
2020-09-10 12:42:04 -07:00
Karthik Nadig
c071686879
Update src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_on_dllmain.cpp 2020-09-10 12:41:40 -07:00
Karthik Nadig
78bd26571e More compiler tweaks 2020-09-05 19:18:32 -07:00
Karthik Nadig
e4d9baf1fa
Merge pull request #403 from karthiknadig/bin1
Build with control flow guard
2020-09-05 16:52:37 -07:00
Karthik Nadig
c595b6f07c Add warning flag for compilations. 2020-09-05 15:54:00 -07:00
Karthik Nadig
793097ff40
Merge pull request #402 from karthiknadig/poli1
Fix policheck issues
2020-09-05 15:24:12 -07:00
Karthik Nadig
74ea719786 Build with control flow guard 2020-09-03 20:13:00 -07:00
Karthik Nadig
c0243ca32e Fix policheck issues 2020-09-03 17:04:18 -07:00
Pavel Minaev
14ca4f07d1 Fix #351: Python warnings in debugger code
Don't use inspect.getargspec on Python 2.

Close log file objects on exit.

Close os.devnull file objects on exit.

Close the listener socket used to get endpoints info from adapter.

Fix invalid escape sequences.

Run tests with Python warnings treated as errors.

Fix Django deprecation warning in test web app.

Work around pytest issues caused spaces in test names.
2020-09-03 01:32:58 -07:00
Karthik Nadig
1a93e56734 Add cgmanifest listing vendored dependencies 2020-08-28 12:42:58 -07:00
Karthik Nadig
d69beaf987 Remove untangle from TPN 2020-08-28 12:42:39 -07:00
Fabio Zadrozny
7512ab01d6 Fix issue collecting try..except information. Fixes #374 2020-08-27 20:59:45 -03:00
Pavel Minaev
6200c1db4f Fix os.environ encoding on Python 2.7. 2020-08-26 10:09:19 -07:00
Pavel Minaev
677fef79d1 Disable frame-eval by default to work around #346. 2020-08-26 10:09:19 -07:00
Fabio Zadrozny
44b01c8165 Fix issue inspecting numpy array. Fixes #378 2020-08-20 16:18:51 -03:00
Pavel Minaev
45e529905d Gracefully handle missing /dev/tty when setting up process group for the debuggee. 2020-08-19 14:50:44 -07:00
Pavel Minaev
17ff9c8df9 Restrict pytest-xdist version number to support Python 2.7. 2020-08-19 14:50:44 -07:00
Pavel Minaev
5087603ea3 Fix #370: Terminal Keyboard Inputs not being accepted
Make the debuggee process group the foreground group in its session.

Add a test for input(), and improve existing stdin test to cover more cases.
2020-08-19 14:50:44 -07:00
Pavel Minaev
57ec4c4f65 Fix #125: Stop Debugging in a "noDebug" session doesn't kill subprocesses
On Windows, run the debuggee in a separate Win32 job, and terminate the job when launcher exits.

On POSIX, run the debuggee in a separate process group (PGID), and kill the entire group when launcher exits.

Improve process tree autokill tests to actually check whether the child process has exited.
2020-08-11 09:41:51 -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
Fabio Zadrozny
09142fb34d Fix issue with frame eval mode and multiple breakpoints in generator. Fixes #348 2020-08-01 13:50:37 -03:00
Pavel Minaev
32ec4ba31b
Fix type of PROCESS_SPAWN_TIMEOUT and PROCESS_EXIT_TIMEOUT 2020-07-27 17:38:48 -07:00
Fabio Zadrozny
ad3ade8e84 Show user traceback for errors raised in the debug console. Fixes #328 2020-07-24 08:24:44 -03:00
Fabio Zadrozny
499bbb2a1e Don't patch stdin on debugpy. Fixes #296 2020-07-23 08:28:14 -03:00
Fabio Zadrozny
1bef8e5ffb Improve dealing with blocking evaluate requests. Fixes #157 2020-07-18 14:57:02 -03:00
Pavel Minaev
4069c670bd Fix #314: Occasional missing response to "configurationDone"
Actually handle missing response to "configurationDone".

Fix comment for handling missing responses to "launch" and "attach".
2020-07-16 16:00:43 -07:00
Pavel Minaev
440587b261 Fix #314: Occasional missing response to "configurationDone"
Don't treat missing response as error, but gracefully finalize the debug session instead.
2020-07-01 15:34:06 -07:00
Fabio Zadrozny
be4c063719 Revert "Sync from pydevd: improve attach to pid (patches by Søren L. Hansen)"
This reverts commit b8e66cbffc.
2020-06-29 10:09:03 -07:00
Pavel Minaev
4331cf54c0
Increase Azure pipelines timeout to 30 minutes. 2020-06-26 13:37:39 -07:00
Pavel Minaev
93982f9ad4 Reformat everything with a newer version of Black. 2020-06-26 13:37:31 -07:00
Pavel Minaev
4c323506b1
Add cached optimized bytecode (*.pyo) to "files.exclude" 2020-06-26 11:27:30 -07:00
Pavel Minaev
2896e92d49 Fix #303: Error message if subprocess exits before attach to it completes
When "subProcessId" is specified, but there's no matching subprocess, pretend that attach succeeded, but immediately terminate the session afterward.
2020-06-26 11:04:04 -07:00
Pavel Minaev
445c050932 Fix #239: Timed out waiting for debugger to spawn
Make timeouts for process spawning and exiting configurable, and increase the default value for spawning.
2020-06-26 10:53:39 -07:00
Pavel Minaev
e8bd6c1b5d Fix #304: Breakpoints not working with QThread/PySide2
Expose pydevd.enable_qt_support() in debugpy.server via debugpy.configure(qt=...) and --configure-qt ...

Expose the same in debugpy.adapter via "qt" debug configuration property.

Default to "auto" for all of the above, and also provide "none" to disable Qt monkey-patching entirely.
2020-06-25 06:25:23 -07:00
Fabio Zadrozny
b8e66cbffc Sync from pydevd: improve attach to pid (patches by Søren L. Hansen) 2020-06-25 08:23:21 -03:00
Pavel Minaev
9ba20c40af
Disable test_attach_pid_client on Windows and macOS per #311 2020-06-24 08:56:18 -07:00
Fabio Zadrozny
e01ad19cf8 Don't report caught exceptions for user unhandled exceptions. Fixes #281 2020-06-18 08:10:21 -03:00
Justin Hutchings
13e531b792 Add CodeQL security scanning 2020-06-12 22:18:42 -07:00
Karthik Nadig
9b079b5305
Merge pull request #290 from karthiknadig/update-flask
Update to use latest flask in tests
2020-06-12 22:18:24 -07:00
Karthik Nadig
984bf59ce0 Update to use latest flask in tests 2020-06-12 13:14:51 -07:00