You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
Now that #125 has been merged, we can request more variables when expanding a tree node.
However we don't support nested data structures yet, such as a dict in a dict:
But it looks like we could do some further refactoring, and end up having:
The current scopes and variables, as returned by the DAP, stored in memory in the model
A mapper that transforms the data from the DAP, and maintains a JSON-like data structure that represents the variables as the state
The react view that consumes the JSON-like state and renders the tree as is
The tree view component should also support events when a node is expanded
On expand, a request is sent to the kernel to retrieve more information for the variable using the variableReference
There is already some of this logic in the current implementation, but we should try to separate the state management, rendering and event handling even more.
Also we should check whether or not the current variableExpanded signal is needed in the model. Or if we can make the request for more variables via the service directly:
Now that #125 has been merged, we can request more variables when expanding a tree node.
However we don't support nested data structures yet, such as a
dict
in adict
:But it looks like we could do some further refactoring, and end up having:
variableReference
There is already some of this logic in the current implementation, but we should try to separate the state management, rendering and event handling even more.
Also we should check whether or not the current
variableExpanded
signal is needed in the model. Or if we can make the request for more variables via the service directly:debugger/src/variables/index.ts
Lines 82 to 84 in 8192e8a
The text was updated successfully, but these errors were encountered: