Skip to content

Debugging across http requests throws exception #3682

@willm

Description

@willm

Hi,

I hope this is the right place to post this, but I think I've found an issue with node debug.

Given this code in test.js:

var http = require('https');
http.get('https://nodejs.org', function (res) {
    debugger;
}).on('error', function (e) {
    throw e;
});
node debug test.js                                                                                                               20 ↵
< Debugger listening on port 5858
debug> . ok
break in test/t.js:1
> 1 var http = require('https');
  2     http.get('https://nodejs.org', function (res) {
  3         debugger;
debug> c
break in test/t.js:3
  1 var http = require('https');
  2     http.get('https://nodejs.org', function (res) {
> 3         debugger;
  4     }).on('error', function (e) {
debug> repl
Press Ctrl + C to leave debug repl
> res
< iojs: ../src/util-inl.h:196: TypeName* node::Unwrap(v8::Local<v8::Object>) [with TypeName = node::TLSWrap]: Assertion `(object->InternalFieldCount()) > (0)' failed.
program terminated

I think this should be allowing me to inspect the res object. Not sure if this is a node or V8 issue though. I'm running node 4.0.0 on Ubuntu 14.04.3 LTS

node --version
v4.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    tlsIssues and PRs related to the tls subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions