Commit graph

1981 commits

Author SHA1 Message Date
Pavel Minaev
95e349fdbb Add tests for variable paging.
Fix "variables" handler to correctly handle invalid "start" values.
2024-05-03 14:26:19 -07:00
Pavel Minaev
de1e456aa2 Add object inspection tests for int 2024-05-03 14:26:19 -07:00
Rich Chiodo
278ed2fe2a
Add support for the goto request (#1575)
* Working goto handler

* Fix stack_trace_len

* Get test working

* Review feedback

* Use new_dap_id in the IDMap

* Use format string instead of old way

* Review feedback

* Feedback for step class rewrite

* Use trace function to detect line problems

* Remove unnecessary logging

* Optimize the stack_trace property

* Move error checking for stack frame to adapter
2024-05-02 11:24:07 -07:00
Pavel Minaev
2f4ed23203 Separate out repr and children inspection. 2024-04-18 13:04:48 -07:00
Pavel Minaev
1cb13f31e7 Handle recursive nesting in repr. 2024-04-18 13:04:48 -07:00
Pavel Minaev
2b19f8fe6f Generic implementation for streaming truncatable "safe" repr for str-like and builtin collection types.
Parse and propagate "valueFormat".
2024-04-18 13:04:48 -07:00
Pavel Minaev
098b84b676 Reformat and clean up imports. 2024-04-01 12:52:46 -07:00
Pavel Minaev
1fa0668fcc Pagination of child variables (#1439) 2024-04-01 12:32:08 -07:00
Pavel Minaev
8a47d7f399 Fix type annotations 2024-04-01 12:32:08 -07:00
Pavel Minaev
dfbb3f7fac Variable paging 2024-04-01 12:32:08 -07:00
Pavel Minaev
c50c59b40c Light up all sequence datatypes. 2024-03-28 13:55:47 -07:00
Pavel Minaev
117704df3d Remove comment that is no longer applicable.
Use consistent naming.
2024-03-26 15:48:02 -07:00
Pavel Minaev
1d4e23b328 Ensure that f_locals mutation is propagated to actual locals. 2024-03-26 15:48:02 -07:00
Pavel Minaev
dfd61c8e72 Implement #1441: Editing variable values
Implement #1442: Expression variables
2024-03-26 15:48:02 -07:00
Pavel Minaev
63ce4278bc Fix step-out. 2024-03-18 12:27:11 -07:00
Pavel Minaev
51733b57b5 Fix #1452: [sys.monitoring] Break on raised exception
Fix #1453: [sys.monitoring] Break on uncaught exception
2024-03-18 12:27:11 -07:00
Pavel Minaev
a1ca9bf973 Fix race conditions. 2024-02-29 13:42:59 -08:00
Pavel Minaev
3514ca8569 Fix #1510: [sys.monitoring] Deadlocks when breakpoints are hit 2024-02-29 13:42:59 -08:00
Pavel Minaev
d717acd04e Implement #1430: [sys.monitoring] Conditional breakpoints
Implement #1431: [sys.monitoring] Hit-conditional breakpoints
Implement #1432: [sys.monitoring] Logpoints
2024-02-29 13:42:59 -08:00
Pavel Minaev
c91ae0ee78 Fix Pyright paths in pyproject.toml 2024-01-03 22:19:21 -08:00
Pavel Minaev
81ed1ca909 Merge branch 'main' into v2 2023-12-20 12:18:15 -08:00
Pavel Minaev
479b8c4cab Don't use pydevd helpers in tests. 2023-12-18 14:13:31 -08:00
Pavel Minaev
b9b09e662f Fix #1408: Can no longer expand Numpy arrays to view elements
Fix regression when loading pydevd plugins for numpy, pandas, and django.

Add smoke test for numpy arrays.
2023-12-15 00:14:23 -08:00
Pavel Minaev
e9a39f7ca5 Fix #1477: namedtuple are not rendered in the variable browser as expected
Significantly increase safe repr limits for strings and collections.
2023-12-15 00:14:23 -08:00
Pavel Minaev
2888f7299c Update CODEOWNERS 2023-12-14 10:53:27 -08:00
Pavel Minaev
e62da42e43 Update pydevd attach-to-process binaries. 2023-12-14 10:53:27 -08:00
Pavel Minaev
46a02e10a2 Fix ruff command line arguments. 2023-12-13 21:40:57 -08:00
Pavel Minaev
79882c1861 Fix linker flags for attach-to-process binaries to comply with APIScan requirements. 2023-12-13 21:40:57 -08:00
Pavel Minaev
a15a1ce400 Refactor evaluation logic to have a separate DAP-unaware object inspection layer. 2023-12-13 15:14:30 -08:00
Pavel Minaev
6b5806c5f4 Fix #1337: Get port info from debugpy
Send "debugpySockets" event with information about opened sockets when clients connect and whenever ports get opened or closed.
2023-12-12 10:50:53 -08:00
Pavel Minaev
9db16694c2 sys.monitoring prototype
.

.
2023-12-12 10:49:10 -08:00
Pavel Minaev
ef9a67fe15 Fix #1337: Get port info from debugpy
Send "debugpySockets" event with information about opened sockets when clients connect and whenever ports get opened or closed.
2023-10-06 09:55:52 -07:00
Adam Yoblick
7d09fb24dd
Merge pull request #1390 from microsoft/add_ruff_config 2023-09-20 14:39:51 -05:00
Adam Yoblick
131afb5a07 allow ruff to fail the build if errors are detected 2023-09-19 15:31:15 -05:00
Adam Yoblick
9cc65eb123 disable this linter error 2023-09-19 15:29:18 -05:00
Adam Yoblick
98032d8d7f add ruff section to pyproject.toml 2023-09-19 15:25:34 -05:00
Pavel Minaev
4a03787784 Don't build or test on Python 3.7 2023-09-12 11:14:55 -07:00
Pavel Minaev
cbd0c2a1c1 Fix #1379: Error while enumerating installed packages.
When logging environment info, report all errors at "info" level.
2023-09-12 10:10:49 -07:00
Pavel Minaev
5723ed6b1a Force setuptools version in tests via tox.ini as well. 2023-09-05 13:20:31 -07:00
Pavel Minaev
9e8d1033d0 Use setuptools<66 for Python 3.7 2023-09-05 13:20:31 -07:00
Pavel Minaev
3937f0d10a Use pip install -U to install setuptools. 2023-09-05 13:20:31 -07:00
Pavel Minaev
6ce72e20c8 Fix pipeline condition syntax. 2023-09-05 13:20:31 -07:00
Pavel Minaev
912bc4fe48 Add timeout for linting job. 2023-09-05 13:20:31 -07:00
Pavel Minaev
9df4bbdbfe Exclude more exceptional cases from coverage. 2023-09-05 13:20:31 -07:00
Pavel Minaev
9df16cec07 Re-enable coverage for debugpy.common.log and use comments to exclude specific lines instead. 2023-09-05 13:20:31 -07:00
Pavel Minaev
8e91dfb085 Exclude more error paths from codecov.
Exclude common/log.py from codecov as there are many debug helpers there.
2023-09-05 13:20:31 -07:00
Pavel Minaev
16d39cc173 Use setuptools<68 for Python 3.7 2023-09-05 13:20:31 -07:00
Pavel Minaev
6340818a0e Enumerate installed packages & versions in the log as part of environment info. 2023-09-05 13:20:31 -07:00
Pavel Minaev
2fcb85fdfa Reduce verbosity for successful tests. 2023-09-05 13:20:31 -07:00
Pavel Minaev
ea3904ccb6 Don't force-upgrade pip and setuptools for test runs. 2023-09-05 13:20:31 -07:00