Giter Site home page Giter Site logo

Comments (10)

hediet avatar hediet commented on April 27, 2024 1

I fixed it in 1.1.0. Should work with js-debug-nightly.

from vscode-debug-visualizer.

hediet avatar hediet commented on April 27, 2024

It's like the watch window that VS Code already provides in the debug pane. Except that it does not display the result as text, but interprets the result as data for specific visualizers.

Is it usable with Promises?
As thus, you cannot visualize Promises directly, as there is no visualization for them.

At what point can I use it and how?
You can use it whenever you can use VS Codes watch window.

Can it only output expressions or even a call stack?
Now I am confused. It does not output expression, but visualizes the result of them, evaluated everytime the debugger pauses.

There is no visualizer for the current call stack yet, but VS Code already displays the call stack.

Did that clarify things?

from vscode-debug-visualizer.

st-schneider avatar st-schneider commented on April 27, 2024

For Promises and call stack yes. But how do I visualize something like .map or an iteration or even a simple object?

from vscode-debug-visualizer.

st-schneider avatar st-schneider commented on April 27, 2024

And how is the debug adapter chosen? When I run a node app it reports pwa-chrome instead of node?

from vscode-debug-visualizer.

hediet avatar hediet commented on April 27, 2024

How does it report pwa-chrome? This extension is not involved in chosing the debug adapter.
How would you like .map to be visualized? It's a function call. This extension visualizes data structures.
I'll try to record a video that will demonstrate how to use this extension for javascript.

from vscode-debug-visualizer.

st-schneider avatar st-schneider commented on April 27, 2024

It reports pwa-chrome in the output of the visualizer window.
Okay so I can't visualize iteration with map only with for loops? Is it a bit like in d3 enter update exit with a tick function?

from vscode-debug-visualizer.

kwafok avatar kwafok commented on April 27, 2024

I have got a similar error after these steps:

  1. Run VsCode command "Debug: Create JavaScript Debug Terminal"
  2. Run "node" in terminal
  3. Run "debugger" in node repl.
  4. Run VsCode command "Debug Visualizer: New View"
  5. Input:
{
    "kind": { "graph": true },
    "nodes": [
        { "id": "1", "label": "1" },
        { "id": "2", "label": "2", "color": "orange" },
        { "id": "3", "label": "3" }
    ],
    "edges": [
        { "from": "1", "to": "2", "color": "red" },
        { "from": "1", "to": "3" }
    ]
}

image

What are Extractor, and Visualizer? They are (none) now. How can I setup Extractor, Visualizer?

from vscode-debug-visualizer.

hediet avatar hediet commented on April 27, 2024

Ah, now I understand the problem. Never really encountered the pwa-chrome debug adapter.
Why is VS Code using this debug adapter, and not the node debug adapter?
Which extension provides the command Debug: Create JavaScript Debug Terminal?

from vscode-debug-visualizer.

kwafok avatar kwafok commented on April 27, 2024

I have installed extension "js-debug-nightly", and it provide the command Debug: Create JavaScript Debug Terminal

https://github.com/microsoft/vscode-js-debug/blob/master/README.md#debug-nodejs-processes-in-the-terminal

from vscode-debug-visualizer.

hediet avatar hediet commented on April 27, 2024

I'm closing this issue. Please reopen if the update does not fix it.

from vscode-debug-visualizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.