Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Debugger doesn't work on Windows v0.5.1 #1373

Closed
randyho-kk opened this issue Jul 20, 2011 · 4 comments
Closed

Debugger doesn't work on Windows v0.5.1 #1373

randyho-kk opened this issue Jul 20, 2011 · 4 comments

Comments

@randyho-kk
Copy link

Problem Description

There is an error when attempting to run in debug mode on windows:

System Information

Windows 7 64-bit
Node.exe Windows Executable v0.5.1 (from: http://nodejs.org/#download)

How to reproduce

Run the following script as shown in the examples below

The Script:

HelloWorld.js

var http = require('http');

http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, "127.0.0.1");

console.log('Server running at http://127.0.0.1:1337/');

Non debug runs fine:

$ node HelloWorld.js
Server running at http://127.0.0.1:1337/

Error when running under debug:

$ node debug HelloWorld.js

net_legacy.js:38
var binding = process.binding('net');
^
Error: No such module
at net_legacy.js:38:23
at NativeModule.compile (node.js:465:5)
at node.js:430:18
at child_process.js:24:14
at NativeModule.compile (node.js:465:5)
at node.js:430:18
at _debugger.js:25:13
at NativeModule.compile (node.js:465:5)
at Function.require (node.js:430:18)
at startup (node.js:65:28)

@randyho-kk
Copy link
Author

Hrm... Just noticed the reference to child_process on the stacktrace. Could this be a symptom of Issue #1340?

at NativeModule.compile (node.js:465:5)
at node.js:430:18
at child_process.js:24:14

@hackedy
Copy link

hackedy commented Jul 21, 2011

The error is actually just from attempting process.binding('net'), a builtin only available on posix atm.

@Bonuspunkt
Copy link

seems to be working
v0.5.10 @ W7x64

@koichik
Copy link

koichik commented Oct 26, 2011

Thanks, closing.

@koichik koichik closed this as completed Oct 26, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants