Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using watchedFiles attribute of iisnode tag breaks node-inspector #143

Closed
JustinBeckwith opened this issue Feb 16, 2012 · 1 comment
Closed
Labels

Comments

@JustinBeckwith
Copy link

I am trying to set up node-inspector with the pre-built example sites in the full IIS Node install. If I use the tag, I get 404 errors.

Steps to reproduce:

  • Open the www examples directory with WebMatrix
  • run the site
  • navigate to ~/helloworld/hello.js/debug/
  • node-inspector works
  • go back to WebMatrix
  • Open helloworld/web.config
  • add an IIS node tag after the handlers:
<iisnode watchedFiles="*.js;node_modules\*;routes\*.js;views\*.jade;middleware\*.js"/>
  • restart the site
  • navigate to ~/helloworld/hello.js/debug/
  • get a 404

It looks like if I trim the watched files down to one (just *.js) it still works. If I include multiple items in this path, it doesn't work.

@tjanczuk
Copy link
Owner

The problem was that attempting to watch files in nonexistent directories using the iisnoed@watchedFiles attribute prevented the service from starting. The problem manifested itself with any service, not only a debugged one.

The fix is for iisnode to ignore entries on the iisnode@watchedFiles list that point to non-existing files or directories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants