Fabio Zadrozny
152edebd4e
Different implementation to set tracing to other threads for Python 3.7. Fixes #1587 ( #1669 )
2019-08-09 10:36:34 -07:00
Karthik Nadig
81ac055f3f
Ensure stopped on goto changes focus ( #1668 )
...
* Ensure stopped on goto changes focus
* Test fix
2019-08-08 17:27:34 -07:00
Karthik Nadig
f6d04ea0c7
Create question.md
2019-07-30 18:34:17 -07:00
Karthik Nadig
7ceda11fc4
Update contributing instructions
2019-07-26 00:12:04 -07:00
Karthik Nadig
0e173e9170
Fix for breakpoint binding issue in VS ( #1601 )
...
* Fix for breakpoint binding issue in VS
* Fix tests
2019-07-17 13:48:53 -07:00
Karthik Nadig
12ea929457
Update DAP ( #1598 )
2019-07-15 19:24:06 -07:00
Karthik Nadig
8929cbb5bb
Minor update to TROUBLESHOOTING.md
2019-07-13 21:52:58 -07:00
Fabio Zadrozny
62501bac94
Don't try to patch arguments when not dealing with python. Fixes #1548 ( #1588 )
...
* Properly try to resolve_label multiple times in attach to pid.
* Don't try to patch arguments when not dealing with python. Fixes #1548
2019-07-12 14:54:29 -07:00
Fabio Zadrozny
76863a9340
Attach to pid fixes with threading. Fixes #1542,#1520 ( #1582 )
...
* Attach to pid fixes with threading. Fixes #1542,#1520
* Make sure that the python code is actually in bytes.
* Fix folder for attach to pid in mac os.
* Better error message if unable to get the threadStateIndex for the current thread.
* Raise number of attempts to resolve_label during attach to pid (windows).
2019-07-12 14:58:27 -03:00
Fabio Zadrozny
62837418c1
Use set_additional_thread_info to obtain the additional thread info. Fixes #1581 ( #1583 )
2019-07-12 09:11:19 -03:00
Karthik Nadig
70ae96f881
Temporarily use older flask for CI ( #1584 )
2019-07-11 12:54:11 -07:00
Dave Hirschfeld
4d87f5654c
Add a conda-forge badge ( #1572 )
2019-07-10 15:17:10 -07:00
Fabio Zadrozny
95c456d2e7
Don't trace <string> files unless it's the one from python -c. Fixes #1398
2019-07-10 13:04:53 -07:00
Fabio Zadrozny
65c50f8769
Add source mapping to support ipython cells. Fixes #1503
2019-07-10 13:04:53 -07:00
Fabio Zadrozny
f3aaa3b28a
Option to break on SystemExit == 0 in pydevd. Fixes #1223 ( #1565 )
2019-07-07 07:34:44 -03:00
Karthik Nadig
4df853178a
Update debugOptions in docs ( #1561 )
2019-07-03 16:48:06 -07:00
Fabio Zadrozny
27e638846d
Send continued event when all threads resume. Fixes #1530 . ( #1554 )
...
* Send continued event when all threads resume. Fixes #1530 .
* Don't hide exception if connect_with_new_session fails.
* Don't send resumed event if we haven't initialized first (fix test_reattach).
2019-07-03 09:51:59 -03:00
Samuel Bronson
9666eac569
Update Debug Adapter Protocol links
...
There's a [new home for the Debug Adapter Protocol][1], so we might as well link to it.
[1]: https://code.visualstudio.com/blogs/2018/08/07/debug-adapter-protocol-website
2019-06-29 14:42:22 -07:00
Fabio Zadrozny
57e50a6143
Trace existing threads on settrace. Fixes #509 ( #1541 )
2019-06-26 09:19:35 -03:00
Karthik Nadig
1b5f6ef6bb
Ensure port is set on enable_attach ( #1537 )
...
* Ensure port is set to server listening port.
* Remove debug code
* Address comments.
2019-06-24 16:17:24 -07:00
Pavel Minaev
161b201fd4
Add API to selectively enable and disable tracing. ( #1536 )
2019-06-20 16:33:45 -07:00
Pavel Minaev
71e90ff2b5
Restore formatting of command line switch table.
2019-06-19 14:46:45 -07:00
Fabio Zadrozny
daf9206912
Support running code in target process to attach to pid in Linux. Partial fix for #863 ( #1525 )
2019-06-19 09:11:38 -03:00
Fabio Zadrozny
1fce9beeb0
Support attach to pid with Python 3.7. Fixes #846 ( #1521 )
2019-06-17 08:37:25 -03:00
Karthik Nadig
59ef76317b
Move more code to pydevd ( #1519 )
...
* Add systeminfo to pydevd
* Move more code to pydevd
* Address comments.
2019-06-13 16:17:26 -07:00
Karthik Nadig
f3b0bb0cdc
Add systeminfo to pydevd ( #1514 )
...
* Add systeminfo to pydevd
* Address comments
* Fix tests
2019-06-13 10:23:38 -07:00
Fabio Zadrozny
7f76c4b284
Don't fail attach to pid if 'ProgramFiles' env var is not available. Fixes #1144 ( #1515 )
2019-06-13 10:23:04 -07:00
Fabio Zadrozny
7c33548f6a
Stepping in multi-threaded case should continue other threads. Fixes #1372 ( #1513 )
2019-06-13 07:39:19 -03:00
Fabio Zadrozny
862a0c1cf7
Show message when stepping into library code with justMyCode=true. Fixes #1298 ( #1468 )
2019-05-30 11:08:29 -03:00
Fabio Zadrozny
016b557b88
Properly validate breakpoints. Fixes #1191 ( #1462 )
2019-05-25 08:29:32 -03:00
Karthik Nadig
9a263f9f17
Add json-dap command line and debug options ( #1461 )
...
* Add json-dap command line and debug options
* Addressing comments.
2019-05-23 10:44:04 -07:00
Karthik Nadig
8413411146
Remove more unused code. ( #1459 )
2019-05-22 13:28:27 -07:00
Karthik Nadig
025c6c2f63
Ensure stop_on_entry is unset after first break. Fixes #1456 ( #1457 )
...
* Ensure stop_on_entry is unset after first break
* Update tests
2019-05-21 23:23:01 -07:00
Fabio Zadrozny
ff979215fc
Don't use sys.prefix for library roots. Fixes #1422 ( #1455 )
2019-05-21 15:28:13 -03:00
Fabio Zadrozny
5e93cfde81
Properly forward sys.stdin.read(). Fixes #1423 ( #1438 )
2019-05-21 08:46:21 -03:00
Fabio Zadrozny
ba04a8ec6d
No longer switch off getpass on import. Fixes #988 ( #1436 )
2019-05-21 08:46:12 -03:00
Pavel Minaev
2ef2bd97a8
Remove ptvsd.debugger.run()
2019-05-20 20:28:16 -07:00
Pavel Minaev
ef6efe2176
Fix #1413 : Stop on entry hangs the debugger
...
Reimplement ptvsd.debugger.debug() VS entry point via ptvsd.__main__.
2019-05-20 20:28:16 -07:00
Karthik Nadig
ec7f31a92a
Remove unused code ( #1453 )
...
* Remove unused pathutils
* Remove unsed run_code (#6 )
2019-05-20 14:38:21 -07:00
Fabio Zadrozny
202ee99125
Update pydevd_schema with latest debugProtocol.json. Fixes #1434 ( #1435 )
2019-05-20 13:15:45 -07:00
Karthik Nadig
a8c1f32b58
Switch to schema args ( #1431 )
2019-05-17 15:35:15 -07:00
Karthik Nadig
afccb47ec9
Remove non-json calls. Fixes #1419 ( #1426 )
...
* refactor non-json commands in wrapper
* Remove is_process_event and use pydevd config done
* Address comments.
* Name changes and cleanup
2019-05-17 12:42:21 -07:00
Fabio Zadrozny
f115036d8b
Improve object repr slicing on Python 2. Fixes #1407 ( #1429 )
2019-05-17 11:27:50 -03:00
Fabio Zadrozny
343ad5fbed
Provide breakpoints in response. Fixes #1408 ( #1425 )
2019-05-16 14:24:33 -07:00
Fabio Zadrozny
e298fc54b4
Send DAP process event from pydevd. Fixes #1338 ( #1420 )
2019-05-16 09:19:30 -03:00
Karthik Nadig
3e89bde5ac
Ensure stop on entry reason is entry. Fixes #1387 ( #1415 )
...
* Ensure that stopped reason is 'entry' for stop on entry.
* Update cython wrappers
* Revert "Update cython wrappers"
This reverts commit d98efe2d8d1c0bf496b4f7905bc261170ac7477f.
* Generate .pyx and .c files.
* Update name
* .
* Update tests
* preserveFocusHint should be false for `entry`
* Fix #1418 and clean up
* Add log message if no main thread is found
2019-05-14 10:22:50 -07:00
Fabio Zadrozny
f39747ceba
Provide disconnect/reconnect and a non-blocking way of setting up the debugger. Fixes #1382 , Fixes #1248 . ( #1414 )
2019-05-10 14:17:12 -03:00
Karthik Nadig
2653656cef
Redirect output setting changes ( #1405 )
...
* Move more settings to pydev
* Deprecate redirect output argument.
* Use warn.
* Add tests and cleanup
2019-05-08 11:48:11 -07:00
Fabio Zadrozny
ef6a679d0e
DAP: stop sending some events from pydevd. Fixes #1342 ( #1406 )
2019-05-08 10:31:15 -03:00
Fabio Zadrozny
8dcd570a2e
Check if returned thread id is valid in on_evaluate_request. Fixes #1401 ( #1402 )
2019-05-06 08:59:23 -03:00