-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
105 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.5 KB
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll
Binary file not shown.
Binary file modified
BIN
+24 KB
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb
Binary file not shown.
Binary file modified
BIN
+1 KB
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll
Binary file not shown.
Binary file modified
BIN
+24 KB
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb
Binary file not shown.
Binary file modified
BIN
-22.5 KB
(91%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb
Binary file not shown.
Binary file modified
BIN
-17.5 KB
(91%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.exe
Binary file not shown.
Binary file modified
BIN
+64 KB
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb
Binary file not shown.
Binary file modified
BIN
+1.5 KB
(110%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll
Binary file not shown.
Binary file modified
BIN
+16 KB
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb
Binary file not shown.
Binary file modified
BIN
+512 Bytes
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll
Binary file not shown.
Binary file modified
BIN
+16 KB
(100%)
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import pkgutil | ||
__path__ = pkgutil.extend_path(__path__, __name__) |
2 changes: 2 additions & 0 deletions
2
src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import pkgutil | ||
__path__ = pkgutil.extend_path(__path__, __name__) |
2 changes: 2 additions & 0 deletions
2
src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import pkgutil | ||
__path__ = pkgutil.extend_path(__path__, __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See LICENSE in the project root | ||
# for license information. | ||
|
||
from tests import debug | ||
from tests.patterns import some | ||
|
||
|
||
def test_ndarray(pyfile, target, run): | ||
@pyfile | ||
def code_to_debug(): | ||
import numpy | ||
import debuggee | ||
|
||
debuggee.setup() | ||
a = numpy.array([123, 456], numpy.int32) | ||
print(a) # @bp | ||
|
||
with debug.Session() as session: | ||
session.config["variablePresentation"] = {"all": "hide", "protected": "inline"} | ||
with run(session, target(code_to_debug)): | ||
session.set_breakpoints(code_to_debug, all) | ||
|
||
stop = session.wait_for_stop() | ||
scopes = session.request("scopes", {"frameId": stop.frame_id})["scopes"] | ||
globals_ref = scopes[0]["variablesReference"] | ||
vars = session.request( | ||
"variables", | ||
{"variablesReference": globals_ref}, | ||
)["variables"] | ||
print(vars) | ||
|
||
# Fetch children variables of the array. | ||
(a,) = (v for v in vars if v["name"] == "a") | ||
a_vars = session.request( | ||
"variables", | ||
{"variablesReference": a["variablesReference"]}, | ||
)["variables"] | ||
print(a_vars) | ||
|
||
# Fetch the actual array items | ||
(items,) = (v for v in a_vars if v["name"] == "[0:2] ") | ||
a_items = session.request( | ||
"variables", | ||
{"variablesReference": items["variablesReference"]}, | ||
)["variables"] | ||
print(a_items) | ||
|
||
assert a_items == [ | ||
some.dict.containing( | ||
{ | ||
"type": "int32", | ||
"name": "0", | ||
"value": "123", | ||
"variablesReference": some.int, | ||
} | ||
), | ||
some.dict.containing( | ||
{ | ||
"type": "int32", | ||
"name": "1", | ||
"value": "456", | ||
"variablesReference": some.int, | ||
} | ||
), | ||
some.dict.containing( | ||
{ | ||
"type": "int", | ||
"name": "len()", | ||
"value": "2", | ||
"presentationHint": {"attributes": ["readOnly"]}, | ||
"variablesReference": 0, | ||
} | ||
), | ||
] | ||
|
||
session.request_continue() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters