-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable inspection in the debugger sidebar #9114
Comments
Do you know why it's not in the Debug Adapter Protocol already? |
This can be tested by calling: const stackTrace = await debugSession.sendRequest('stackTrace', {
threadId
});
console.log(stackTrace) just before: Output:
|
The Last option would be to be able to pass different objects to the react component, but the view when stopped on a breakpoint and that when the execution has finished whould be inconsistent. |
Moving to the Future milestone. |
Also this This also means that if a user wants to inspect children of a top-level variable (for example a nested dict or a class), the frontend could still send an |
The latest version of For more info: |
xref #7873 which discusses inspecting Python objects. |
Closing as implemented in #10025 and released in 3.1. Please correct me if I am wrong here. |
Please notice the backend has been improved to return an array of |
Asking the variables with the sequence of
StackTrace
,Scopes
andVariables
requests does not work if execution did not stop on a breakpoint.A solution to this would be to add a command in the protocol, let's say
inspectVariables
, that would make the interpreter executeglobals
and return its result.The text was updated successfully, but these errors were encountered: