Commit graph

1475 commits

Author SHA1 Message Date
Pavel Minaev
de9ea2cb9c Improve exception logging to make swallowing/reraising explicit in all cases. 2020-02-21 15:55:04 -08:00
Pavel Minaev
bf1fbbc8ee Fix #53: "logToFile" doesn't create pydevd logs
Set PYDEVD_DEBUG and PYDEVD_DEBUG_FILE based on DEBUGPY_LOG_DIR.
2020-02-20 16:09:35 -08:00
Fabio Zadrozny
ecf0446d3f Allow speedups to be imported. 2020-02-20 09:35:06 -03:00
Fabio Zadrozny
64bb304a69 Dedent block sent for evaluation. Fixes https://github.com/microsoft/ptvsd/issues/1570 2020-02-20 09:34:28 -03:00
Pavel Minaev
0ce5eff60c Fix https://github.com/microsoft/ptvsd/issues/2082:
Failure to spawn ptvsd.launcher is not propagated to the client

Propagate errors from listener sockets, Popen(), and "runInTerminal" request back to the client.
2020-02-19 15:42:08 -08:00
Pavel Minaev
371fe76772 Fix CLI help. 2020-02-18 16:01:39 -08:00
Fabio Zadrozny
ccd9ac5f24 Use launcher pid as ppid in DAP. Fixes #42 2020-02-18 14:55:33 -03:00
Pavel Minaev
7454f89d25
Fix sporadic EBADF from accept() 2020-02-17 20:48:25 -08:00
Pavel Minaev
fb9590fab0
Merge pull request #46 from int19h/2079
Fix https://github.com/microsoft/ptvsd/issues/2079: sys.argv sends in unicode instead of string
2020-02-17 20:40:34 -08:00
Pavel Minaev
6feb7f9fe1 Fix https://github.com/microsoft/ptvsd/issues/2079:
sys.argv sends in unicode instead of string

Convert sys.argv to Unicode as it is being parsed, and do not touch the remaining args.
2020-02-17 18:21:13 -08:00
Pavel Minaev
9fe1be6eec
Merge pull request #44 from int19h/fix_2081
Fix https://github.com/microsoft/ptvsd/issues/2081
2020-02-13 11:03:55 -08:00
Fabio Zadrozny
189c3265c1 Deal with exceptions in hasattr/dir/isinstance. Fixes https://github.com/microsoft/ptvsd/issues/2076 2020-02-13 08:54:10 -03:00
Pavel Minaev
1cbd5891b7 Fix https://github.com/microsoft/ptvsd/issues/2081: KeyError: 'PTVSD_LAUNCHER_PORT' happened when debug with "sudo"
Remove redundant use of sudo to spawn the launcher.

Add test for "sudo".
2020-02-13 01:22:10 -08:00
Pavel Minaev
9631bc88d6
Merge pull request #40 from int19h/client
s/IDE/client/
2020-02-12 10:38:01 -08:00
Fabio Zadrozny
0529b8fd91 Redirect I/O during repl evaluation in DAP. Fixes https://github.com/microsoft/ptvsd/issues/2036 2020-02-12 07:42:28 -03:00
Pavel Minaev
8c114ed589 Purge all mentions of "IDE", and replace with "client" or "clients" as appropriate.
Blacken code.
2020-02-11 17:03:45 -08:00
Pavel Minaev
77654f6ff6
Merge pull request #39 from int19h/apiref
Refactor debugpy API and CLI for clarity and consistency.
2020-02-11 16:37:56 -08:00
Pavel Minaev
8447a15396 Refactor debugpy API and CLI for clarity and consistency. 2020-02-11 14:40:25 -08:00
Fabio Zadrozny
7d34a12644 Notify user about gevent before halting debugger. Fixes https://github.com/microsoft/ptvsd/issues/2057 2020-02-06 08:32:13 -03:00
Fabio Zadrozny
5d5f8f42ec Re-attach to pid when using --client. Fixes https://github.com/microsoft/ptvsd/issues/1817 2020-02-06 08:31:28 -03:00
Karthik Nadig
7d86c234a1
Exclude server directory from sonar
Currently we don't have a good way to do coverage for this area.
2020-02-05 11:04:33 -08:00
Karthik Nadig
b3ba09467a
Merge pull request #34 from karthiknadig/sonarcloud
Enable sonar cloud analysis
2020-02-04 12:33:16 -08:00
Karthik Nadig
892483ce59 Try better path pattern 2020-02-04 11:52:53 -08:00
Fabio Zadrozny
3024095f8e Show log as info, not critical 2020-02-03 07:38:57 -03:00
Karthik Nadig
76d893aa57 Enable sonar cloud analysis 2020-02-01 10:27:37 -08:00
Karthik Nadig
aa636f2fe8
Merge pull request #33 from karthiknadig/coverage
Add timeouts
2020-02-01 00:56:12 -08:00
Karthik Nadig
7fe4f975bd Fix more coverage issues. 2020-01-31 21:47:58 -08:00
Pavel Minaev
14bf844339
Merge pull request #32 from int19h/14
Fix #14: Update package metadata in setup.py
2020-01-31 18:41:32 -08:00
Karthik Nadig
e66bcde7bb Add timeouts 2020-01-31 17:46:47 -08:00
Karthik Nadig
d1662a2286
Update Badge 2020-01-31 16:56:14 -08:00
Pavel Minaev
fde27e5a92 Fix #14: Update package metadata in setup.py 2020-01-31 16:53:58 -08:00
Pavel Minaev
2783e88835
Merge pull request #28 from int19h/20
Fix #20: No connection could be made because the target machine actively refused it
2020-01-31 16:48:09 -08:00
Karthik Nadig
180988e259
Merge pull request #31 from karthiknadig/coverage
Add mac code coverage
2020-01-31 16:38:09 -08:00
Karthik Nadig
cd42a1dbe9 Add mac code coverage 2020-01-31 16:32:54 -08:00
Karthik Nadig
601244dfba
Update badges 2020-01-31 16:12:04 -08:00
Karthik Nadig
d260e299ec
Merge pull request #30 from karthiknadig/coverage
Fix coverage
2020-01-31 15:52:56 -08:00
Pavel Minaev
14e35ee6ff
Fix #29: debugpy: "python" key is required in "launch" request
Allow "python" to be missing or empty.
2020-01-31 15:12:02 -08:00
Karthik Nadig
0555ca2bff Fix coverage 2020-01-31 15:09:42 -08:00
Pavel Minaev
3f8fdb88c5 Fix #20: No connection could be made because the target machine actively refused it
Use max length for incoming connection queue for IDE and server connections to the adapter.

Clean up connection handling code:
- rename sockets.listen() helper to serve() to avoid confusion with socket.listen();
- simplify helper to not require inheritance;
- switch launcher to use the same helper as IDE and servers;
- remove unused legacy connection helpers in Session.
2020-01-31 14:55:37 -08:00
Karthik Nadig
a40fbf6fc9
Merge pull request #27 from karthiknadig/coverage
Fix more paths.
2020-01-31 14:03:51 -08:00
Karthik Nadig
f2e7e13de5 Fix more paths. 2020-01-31 14:01:52 -08:00
Karthik Nadig
193d9f8c84
Merge pull request #26 from karthiknadig/coverage
Fix paths.
2020-01-31 14:00:55 -08:00
Karthik Nadig
dbbcb410c2 Fix paths. 2020-01-31 13:50:26 -08:00
Karthik Nadig
435125ae7d
Merge pull request #25 from karthiknadig/coverage
Coverage for windows and linux
2020-01-31 13:43:39 -08:00
Karthik Nadig
13ed4073d6
Merge pull request #24 from karthiknadig/movetest
Fix paths
2020-01-31 13:09:26 -08:00
Karthik Nadig
f22b8e7edd Coverage for windows and linux 2020-01-31 13:07:54 -08:00
Karthik Nadig
328a985895 Fix paths 2020-01-31 13:06:20 -08:00
Karthik Nadig
9811a15e24
Rename and move tests.yaml into azure-pipelines folder
Rename and move tests.yaml into azure-pipelines folder
2020-01-31 13:04:16 -08:00
Karthik Nadig
a6a9d04717 Rename test.yaml to pipelines.taml 2020-01-31 13:03:08 -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