Giter VIP home page Giter VIP logo

Comments (4)

roblourens avatar roblourens commented on May 24, 2024

Can you explain what you mean by "handling"? These are just files which the debug adapter has guessed are probably node's files. We just add that for files loaded without an absolute path.

from vscode-node-debug2.

yyoncho avatar yyoncho commented on May 24, 2024

@roblourens thanks for the quick reply. In vscode when you click this file it is opened in the editor. I want to replicate that behaviour in emacs but it is unclear to me how to find that file. Excuse my ignorance, I am not very familiar with node internals.

from vscode-node-debug2.

roblourens avatar roblourens commented on May 24, 2024

I see. The client doesn't need to know anything about node internals, that's what the debug adapter is for :)

These files will be sent with a sourceReference:

https://github.com/microsoft/vscode-debugadapter-node/blob/df24f9770344b5c79c8e9e34cfee03c47f7f38f9/protocol/src/debugProtocol.ts#L1510

And you can request the source of that script by sending a sources request for that sourceReference:

https://github.com/microsoft/vscode-debugadapter-node/blob/df24f9770344b5c79c8e9e34cfee03c47f7f38f9/protocol/src/debugProtocol.ts#L983

And the adapter knows how to retrieve it from node. Hope that helps

from vscode-node-debug2.

yyoncho avatar yyoncho commented on May 24, 2024

Thank you and sorry for bothering you - I should have spent more time reading the spec!

from vscode-node-debug2.

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.