Comments (5)
Could you describe what you need in a bit more detail?
you want npm-watch itself to be listening for a debugger, or to enable it run commands that listen?
from npm-watch.
I would like to enable it run commands that listen
from npm-watch.
🤔 Do you happen to have a minimal script case that you would expect to work but doesn't?
from npm-watch.
try this in a terminal with the cwd set to your project root:
node --inspect-brk=9222 ./node_modules/.bin/npm-watch
Then open chrome://inspect
and attach to the debugger.
That should do it unless npm-watch
spawns a new process for executing watch scripts.
from npm-watch.
npm-watch
does spawn new processes, but if I understood correctly, @michailw - your question is how to have npm-watch
run a command where the command is listening for a debugger?
I have not managed to produce a test case, so I would appreciate it if you could send me a minimal case that you would expect to work, but it doesn't
from npm-watch.
Related Issues (20)
- Things to look into
- Unrecognized input: rs HOT 1
- High severity vulnerability of dot-prop package HOT 2
- Annoying "npm update check" message HOT 6
- bad documentation HOT 2
- can we watch the file in the monorepo
- Couldn't find a way to run subset of scripts (but still more than one script) HOT 2
- Is there a limit on the number of watched tasks? HOT 1
- How to ignore conflicting extensions? HOT 1
- npm-watch fails with ENOENT, unhandled error event in a hoisted lerna repository HOT 2
- npm-watch does not stop the last server before running the updated one HOT 5
- How can I run npm-watch in development mode? HOT 1
- npm-watch not detecting changes when run on dev mode HOT 1
- Feature: pass multiple scripts on the command line
- Dynamic script execution command
- globalConfig HOT 1
- global config that apply to every npm-watch scripts HOT 1
- Script not rerunning HOT 5
- Upgrade to nodemon ^3 to avoid vulnerability
- Error: spawn EINVAL on Windows & Node.js v21.7.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-watch.