Stupid question: does this run on Windows? #58

Closed
YukonSaint opened this Issue Aug 8, 2013 · 11 comments

Projects

None yet

5 participants

@YukonSaint

We are getting an error. I don't see it specified anywhere.

what happens if you run

DEBUG=* node -e "require('debug')('app')('some string')"

I don't know how you set environment variables in windows, so you might have to adjust that.

Also, what error do you get?

If you're using command prompt on windows:

SET DEBUG=*
node -e "require('debug')('app')('some string')

or if you're using powershell:

$env:DEBUG = "*"
node -e "require('debug')('app')('some string')

It works on my machine.

Thanks guys. I can get it to run from the command line using: set DEBUG=*

But I can't figure out how to do that from our makefile on windows so we can run it all one step.

I tried @set DEBUG=, set DEBUG=, DEBUG=*. The first doesn't seem to do anything, the other two throw errors.

Anyone know how to set a windows environment var from a makefile? Google hasn't been very helpful.

There's more than one make implementation for windows :s

Owner

It works fine on Windows.

No, it doesn't work for me (Win8, 64b)... Unfortunately Socket.IO is now using this library and it doesn't work at all. How can I see debug messages? It's really important...

I found this. "The debug command is not available in 64-bit versions of Windows 8."
That's it? I cannot se debug messages from (e.g.) Socket.IO?

Owner

@mrtnzlml debug is an npm module. Not a Windows program. The link you referenced isn't relevant at all.

What are you doing to try to use debug? Can you show me your command line invocation?

Ok, I don't know how does it work internally and I saw debug command in this thread so that's why.
I cannot start my program with command starting with DEBUG like this:

DEBUG=server node app.js

because guess what. 'DEBUG' is not recognized as an internal or external command... SET DEBUG = "*" doesn't work as well... How can I run this debugger on Windows then?

Owner

Don't put quotation marks around the * symbol:

screen shot 2014-06-12 at 2 46 35 pm

Finally. Thank you... 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment