Code Monkey home page Code Monkey logo

Comments (7)

gregg-miskelly avatar gregg-miskelly commented on June 11, 2024 2

so I assume this was a forward-looking change in the event that we ever add internal IDs for processes.

No, some debuggers have internal ids for processes, even if they aren't exposed in DAP. The intent was to say "we don't care about your internal ids, please don't send them" :)

from debug-adapter-protocol.

gregg-miskelly avatar gregg-miskelly commented on June 11, 2024 1

It means the operating system's process id (as opposed to some internal id from the debugger).

from debug-adapter-protocol.

gregg-miskelly avatar gregg-miskelly commented on June 11, 2024 1

And a 'non-system process' is trying to talk about some sort of virtual process. Examples: coredump, in-memory snapshot of a process's state, process that represents some sort of remote device, etc.

from debug-adapter-protocol.

connor4312 avatar connor4312 commented on June 11, 2024 1

Appreciate the clarification 🙂 DAP doesn't have "process IDs", so I assume this was a forward-looking change in the event that we ever add internal IDs for processes.

My clarification wording feels a little clumsy, namely "logical" vs "physical" (is "virtual" vs "physical" better? something else?). Happy for any suggestions:

interface ProcessEvent extends Event {
  event: 'process';

  body: {
    /**
     * The process ID of the debugged process, as assigned by the operating
     * system. This property should be omitted for logical processes that do 
     * not map to physical processes on the machine.
     */
    systemProcessId?: number;

from debug-adapter-protocol.

connor4312 avatar connor4312 commented on June 11, 2024

I don't have the historical context behind this property -- @gregg-miskelly or @roblourens perhaps?

from debug-adapter-protocol.

roblourens avatar roblourens commented on June 11, 2024

Oh, I have no idea. VS Code doesn't use it. It kind of sounds like it could be a PID and a "non-system process" would be a process that doesn't represent a real OS process but I don't know what that use-case would be. @isidorn?

from debug-adapter-protocol.

roblourens avatar roblourens commented on June 11, 2024

VS Code doesn't look at ProcessEvent at all

from debug-adapter-protocol.

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.