Skip to content

Better support of Webstorm use case  #7

@dmiwell

Description

@dmiwell

Hi.

Thanks for the lib!

I've tried to setup run script inside Webstorm and the best I was able to achieve is with the following:

img

In factWwebstorm runs the following command:

~/.nvm/versions/node/v16.13.0/bin/node-safe ~/.nvm/versions/node/v16.13.0/lib/node_modules/npm/bin/npm-cli.js run start:dev --scripts-prepend-node-path=auto

Sandbox is recognized and works from node section config, but scripts are ignored. So it seems it does not recognized that run was npm run, since it does it in own way to be able to attach to process to debug.

Is there a way to fix this issue? Or it should be fixed in node-safe scripts.

Also just wondering, is it possible to configure debug scripts in VScode as well. It completely ignores node-safe setup on my end and just run pure node and npm from nvm

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