Skip to content

Clarifying 'loadedSource' events #588

@ashgti

Description

@ashgti

I'd like to better understand when I should fire a 'loadedSource' event.

If an adapter has the supportsLoadedSourcesRequest capability set, should I also send the 'loadedSource' event whenever I find a new source or should I delay sending any events until after the first 'loadedSources' request has been made?

At least from my testing I've seen the following DAP messages:

  • initialize <>
  • launch <>
  • setBreakpoint... <>
  • configurationDone <>
  • loadedSources <>

In lldb-dap at least we know some information about the sources for the debuggee around the time of the launch request but I'm not sure if I should send 'loadedSource' events before the first 'loadedSources' request, or if that request will just write over any sources I've already sent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions