Pavel Minaev
5cf77b6308
Disable "User Uncaught Exceptions" UX.
2020-06-09 14:17:50 -07:00
Fabio Zadrozny
fad8ae6577
If no patching is required for subprocess, return original arguments. Fixes #263
2020-06-04 09:31:54 -03:00
Fabio Zadrozny
f55bea745f
Add userUnhandled to exceptionBreakpointFilters in pydevd / make default False. Fixes #275
2020-06-03 20:30:59 -07:00
Fabio Zadrozny
958af7e2f7
Don't crash if running under CPython debug build. Fixes #152
2020-06-02 12:46:52 -07:00
Fabio Zadrozny
63c0faee41
Handle userUnhandled exception breakpoints. Fixes #111
2020-06-02 12:46:37 -07:00
Karthik Nadig
1fb970643b
Increase timeout to 20 minutes
2020-05-29 12:45:44 -07:00
Fabio Zadrozny
e9fd4ac8e6
Prevent a step in from stopping into the same location in a return from a skipped function. Fixes #224
2020-05-27 07:31:16 -03:00
Fabio Zadrozny
04b9f01e20
Don't duplicate memory when getting the contents of bytes/str. Fixes #242
2020-05-27 07:30:47 -03:00
Fabio Zadrozny
4715925a00
Accept pyside 2 for qt monkey patching.
2020-05-16 07:28:42 -03:00
Fabio Zadrozny
f752952581
Pass presentationHint='locals' to 'Locals' scope. Fixes #236
2020-05-14 08:22:35 -03:00
Fabio Zadrozny
7841d251bb
Return empty type for DAPGrouper instances. Fixes #237
2020-05-14 08:21:41 -03:00
Pavel Minaev
6481979e55
Update bug template.
2020-05-13 16:35:55 -07:00
Fabio Zadrozny
cc1d3f69d1
Fix flake8 issue.
2020-05-13 15:18:36 -03:00
Fabio Zadrozny
451e102606
Test to check that rules are properly reapplied on attach. Fixes #226
2020-05-13 15:18:36 -03: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
65b8b38b32
Rename "debugLauncherHost" to "debugAdapterHost", to more accurately reflect its meaning.
...
Fix launcher to propagate "debugAdapterHost" to debug server.
Add more logging to launcher.
2020-05-08 17:10:34 -07:00
Pavel Minaev
1a44e70206
Fix #156 : Add a flag for the old way of handling args from a launch config
...
Add new property "argsExpansion", which defaults to "shell", but can be explicitly set to "none" to request no expansion.
Propagate "args" to launcher via CLI or JSON, depending on the value of "argsExpansion".
Move the logic to compute process name back to the adapter, alongside other processing of "launch" targets.
2020-05-07 12:31:40 -07:00
Karthik Nadig
7a332142ce
Merge pull request #225 from karthiknadig/config
...
Update workspace config
2020-05-07 12:25:49 -07:00
Fabio Zadrozny
64bb0f3fc5
Consider filenames starting with '<' library code by default. Fixes #209
2020-05-07 15:56:39 -03:00
Fabio Zadrozny
f5bd826ab7
Only handle django and jinja2 exceptions if handling caught exceptions. Fixes #128
2020-05-07 08:47:32 -03:00
Karthik Nadig
16b5e89457
Update workspace config
2020-05-05 11:33:59 -07:00
Pavel Minaev
3f137dbf67
Fix #146 : Custom launcher port for adapter
...
Add "debugLauncherHost" debug configuration property specifying the interface on which the debug adapter is waiting for incoming connections from the launcher.
2020-04-28 13:44:21 -07:00
Fabio Zadrozny
257d00e9dd
Don't show return value when not needed in step into my code. Fixes #106
2020-04-24 09:57:42 -03:00
Pavel Minaev
50bf46cf9d
Add test for "args" shell expansion.
2020-04-22 13:55:01 -07:00
Pavel Minaev
65168dd784
Fix #86 : Shell expansion is not working in "args"
...
Propagate "args" to the launcher via command line rather than debug configuration JSON.
Parse "cwd" in the adapter, and apply it when spawning the launcher.
2020-04-22 13:55:01 -07:00
Pavel Minaev
58c743b496
Clean up launch.json, and add more launch configurations for quick testing.
2020-04-22 13:55:01 -07:00
Pavel Minaev
fc45d3307f
Fix #136 : Provide a way for the launcher to connect to adapter on another host
...
Allow specifying host:port for the launcher to connect to. Use command line argument instead of environment variable to facilitate propagation.
Fix encoding of command line arguments when propagating them to the launcher in "internalConsole" mode.
2020-04-22 13:55:01 -07:00
Pavel Minaev
44307f87d4
Fix #134 : Provide a way to specify custom path to launcher in debug config
...
Add "debugLauncherPath" property to be used by the adapter if specified.
2020-04-22 13:55:01 -07:00
Fabio Zadrozny
011810aa42
Change __len__ to len().
2020-04-21 08:20:54 -03:00
Fabio Zadrozny
d2014babd6
Show globals, group variables and show all dir() variables.
...
Fixes https://github.com/microsoft/ptvsd/issues/118
Fixes https://github.com/microsoft/ptvsd/issues/763
Fixes https://github.com/microsoft/ptvsd/issues/1621
2020-04-21 08:20:54 -03:00
Pavel Minaev
ade162b1d3
Fix CLI help/usage text.
2020-04-15 13:29:45 -07:00
Fabio Zadrozny
2f21b08ae0
sourceReference should be 0 for jupyter cells. Fixes #113
2020-04-15 16:47:52 -03:00
Pavel Minaev
e23d0c23d8
Fix #116 : debugpy requires pathFormat in initialize request
...
Make "pathFormat" optional as per the DAP specification.
2020-04-15 11:43:13 -07:00
Pavel Minaev
0dd33dd250
Fix #108 : Debugger freezes in VSCode
...
When talking DAP over stdio, disable stderr before logging anything to it.
2020-04-08 13:51:29 -07:00
Karthik Nadig
2ff3c11ce9
Merge pull request #104 from microsoft/update-nuget-pkgs
...
Update nuget config to latest python versions.
2020-04-03 23:02:26 -07:00
Karthik Nadig
47c9239864
Update nuget config to latest python versions.
2020-04-03 19:32:41 -07:00
Pavel Minaev
47dd3da5e7
Fix #99 : multiprocessing triggers preLaunchTask and postDebugTask more than once
...
Remove "preLaunchTask" and "postDebugTask" from derived debug configurations generated for subprocesses.
2020-04-03 15:46:09 -07:00
Pavel Minaev
32c00bc85c
Fix #92 : Debugging as sudo fails to terminate the debugger when you stop
...
Apply sudo to debugpy.launcher, rather than the debuggee itself.
2020-04-01 21:16:20 -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
Karthik Nadig
cd803cc14b
Merge pull request #96 from fabioz/ptvsd_998_dict_order
...
Keep order of items in dictionary (Py3.6 onwards) or odict.
2020-04-01 18:32:27 -07:00
Karthik Nadig
e8a830e14a
Merge pull request #95 from fabioz/sync_with_pydevd
...
Synchronizing with contributed changes to pydevd.
2020-04-01 18:28:47 -07:00
Fabio Zadrozny
6be9c6df33
Keep order of items in dictionary (Py3.6 onwards) or odict. Fixes https://github.com/microsoft/ptvsd/issues/998
2020-04-01 15:51:44 -03:00
Fabio Zadrozny
7d5c55fa2e
Synchronizing with contributed changes to pydevd.
2020-04-01 10:25:54 -03:00
Pavel Minaev
f263309598
Fix #84 : Debugging: ConnectionRefusedError with debugpy
...
Always use backlog of at least 1 for listener sockets.
Improve launcher-related error messages in adapter.
2020-03-31 22:21:39 -07:00
Fabio Zadrozny
8fc238e296
Show bytecode when source code cannot be fetched.
...
Fixes https://github.com/microsoft/ptvsd/issues/1304
2020-03-29 07:55:20 -03:00
Pavel Minaev
eb76fbb2e3
Handle "cp65001" pseudo-encoding correctly on Python 2.7.
2020-03-25 21:06:46 -07:00
Pavel Minaev
2541b909c2
Fix #87 : Debugger doesn't start if LANG is set to non-existent locale
...
Ignore errors from setlocale("") instead of failing immediately.
2020-03-25 21:06:46 -07:00
Pavel Minaev
b0daf0f0cf
Fix #83 : Hang with "redirectOutput":true and too much output
...
Set sys.stdin/out/err to os.devnull if using stdio to talk to the client, instead of redirecting stdout to stderr.
2020-03-25 21:06:46 -07:00
Fabio Zadrozny
ed8fe167d0
Preliminary support for Python 3.9. Fixes #35
2020-03-25 08:51:48 -03:00
Pavel Minaev
69db68a5f9
Fix https://github.com/microsoft/ptvsd/issues/2108 :
...
Debug multiprocess leads to AttributeError Can't get attribute on <module '__main__
Don't import multiprocessing before running user code.
Use bytes rather than unicode for __main__.__name__ on Python 2.7.
2020-03-18 14:22:10 -07:00