broccolijs / broccoli

Browser compilation library – an asset pipeline for applications that run in the browser
https://broccoli.build
MIT License
3.33k stars 217 forks source link

[feature] be able to pause node #464

Open gabrielcsapo opened 4 years ago

gabrielcsapo commented 4 years ago

I am currently working on a tool that helps understand what is happening in a broccoli build. (https://github.com/gabrielcsapo/broccoli-inspector/issues/5) One of the features that I am working on is making it easier to introspect into the build process by being able to pause a node and enter a debugging session.

It would be great if this was possible;

watcher.builder.on('beginNode', (node) => {
  node.pause();
  // start chrome debugging session that will eventually be able to call node.continue()
});