-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Rust Demo unexpected visualization #129
Comments
This used to work... I will have to look into this, but cannot promise when I will find time. |
Same problem for me. Debug Visualizer is not usable for rust now ( |
I fear this is the culprit: vscode-debug-visualizer/extension/src/VisualizationBackend/GenericVisualizationSupport.ts Line 68 in 2453c8b
But it should be super easy to fix. I just don't have a working rust environment though. |
I am new to VSCode but figure I will learn a lot looking at this extension. However, I am not able to get the extension working from my local build. Ran yarn and yarn build in the root. F5 to get the development host window. Open my demo project folder. I can debug but in the command palett when I start Debug Visualizer: New View I never get the input to watch. If I select Debug Visualizer: Use Selection as Expression nothing happens.
Suggestions appreciated.
[cid:955868F3-8533-41B4-8804-985D8D34B904]
On Jun 22, 2022, at 11:40 AM, Henning Dieterichs ***@***.******@***.***>> wrote:
Can you debug this extension?
I fear this is the culprit:
https://github.com/hediet/vscode-debug-visualizer/blob/2453c8bf9c4a6fb46459737e8165ce5a961167c2/extension/src/VisualizationBackend/GenericVisualizationSupport.ts#L68
—
Reply to this email directly, view it on GitHub<#129 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALJ5PUFRPOFDRHUETFCTQTLVQMXV5ANCNFSM5HV7TASQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Can you show a screenshot of the view? |
[image001.png]
…Sent from my iPad
On Jun 27, 2022, at 4:50 AM, Henning Dieterichs ***@***.***> wrote:
Can you show a screenshot of the view?
Yes. I don’t get the input field. Not when I select New View or Use Selection as Expression. Any help on what I am missing is appreciated. I would like to learn from debugging this extension.
Thanks,
Diane Stephens
There should be an input field where you can enter the expression.
—
Reply to this email directly, view it on GitHub<#129 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALJ5PUF7ATPF4QHGVACV3CLVRFTNHANCNFSM5HV7TASQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
That didn't work ;) |
[image0.png]
Uhg! This?
Sent from my iPad
On Jun 27, 2022, at 1:10 PM, Henning Dieterichs ***@***.***> wrote:
That didn't work ;)
—
Reply to this email directly, view it on GitHub<#129 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALJ5PUAE3TRFV73DXTXVCLTVRHN7XANCNFSM5HV7TASQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I cannot see the screenshot unfortunately. |
Did you see the message from my other email- ***@***.***? Anyway, Here’s Another try.
[image0.jpeg]
Sent from my iPhone
[image001.PNG]
On Jun 27, 2022, at 4:54 PM, Henning Dieterichs ***@***.***> wrote:
I cannot see the screenshot unfortunately.
—
Reply to this email directly, view it on GitHub<#129 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALJ5PUFQN7GRCSCF3Z4OGY3VRIIH3ANCNFSM5HV7TASQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
[image001.PNG]
…Sent from my iPhone
On Jun 27, 2022, at 7:35 PM, diane mljsoftware.com ***@***.***> wrote:
Did you see the message from my other email- ***@***.***? Anyway, Here’s Another try.
[image0.jpeg]
Sent from my iPhone
[image001.PNG]
On Jun 27, 2022, at 4:54 PM, Henning Dieterichs ***@***.***> wrote:
I cannot see the screenshot unfortunately.
—
Reply to this email directly, view it on GitHub<#129 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALJ5PUFQN7GRCSCF3Z4OGY3VRIIH3ANCNFSM5HV7TASQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Ran the Rust demo, a vec![1,2,3], with the extension in debug and got a little more information. The issue is where you thought ( vscode-debug-visualizer/extension/src/VisualizationBackend/GenericVisualizationSupport.ts Line 69 in 2453c8b
const graph = await this.constructGraphFromVariablesReference(
reply.result,
reply.variablesReference
); reply.result contains the json string for the correct graph with 3 nodes. Here's a SS: then constructGraphFromVariablesReference constructs the bfsQueue array but puts the entire graph data at node[0]. bfsQueue has length 1. Here's a screenshot: |
Actually, this should be falsy to work for arbitrary json: vscode-debug-visualizer/extension/src/VisualizationBackend/GenericVisualizationSupport.ts Line 68 in 2453c8b
The variables reference was an external contribution and it works nicely in Python. I suggest to first try |
If you like, please file a PR! |
Checked the fix a99d0dd against Rust example. Works nicely. Can we use the changes? |
Seconded, it would be great to use the changes especially since it fixes the java issues as well |
Hello, when I run the Rust demo the vector displays in a strange way and the grid display doesn't work correctly.
Debugger: LLDB
Vector visualization:
![vector](https://user-images.githubusercontent.com/30323431/140983430-72a86d14-6674-4ed7-bda0-66c188954254.png)
Grid visualization:
![grid](https://user-images.githubusercontent.com/30323431/140983571-bb496d16-23d3-424f-915a-5303e23a1bf9.png)
The text was updated successfully, but these errors were encountered: