Skip to content

Add support for serverReadyAction on dap configurations #1559

@plandevida

Description

@plandevida

Problem Statement

I am developing a project with swift/vapor/JS, on VScode my dap configuration has a property called serverReadyAction that allows me to start a browser in debug mode after my server has started. This way I can debug the server in swift and the frontend in JavaScript.

I cannot get this to work on nvim-dap, it seem to not be supported.

Possible Solutions

Please add support for this property, it allows to detect a pattern on the logs to recognize the server has successfully started and then launch a browser in debug mode and attach the javascript debugger to it.

Considered Alternatives

I have tried to create some functions that listen for the server logs to start a browser but I couldn't attach a JS debugger and have both partying nicely together.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions