Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
debug statement
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Angelo Chen  
View profile  
 More options Nov 15 2012, 9:25 am
From: Angelo Chen <angelochen...@gmail.com>
Date: Thu, 15 Nov 2012 06:25:05 -0800 (PST)
Local: Thurs, Nov 15 2012 9:25 am
Subject: debug statement

Hi,

looking at nodejs source code, notice this:

    debug('Module._load REQUEST  ' + (request) + ' parent: ' + parent.id);

where can i find the doc for debug? thanks,

Angelo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Nov 15 2012, 9:46 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Thu, 15 Nov 2012 15:46:36 +0100
Local: Thurs, Nov 15 2012 9:46 am
Subject: Re: [nodejs] debug statement

On Thu, Nov 15, 2012 at 3:25 PM, Angelo Chen <angelochen...@gmail.com> wrote:
> Hi,

> looking at nodejs source code, notice this:

>     debug('Module._load REQUEST  ' + (request) + ' parent: ' + parent.id);

> where can i find the doc for debug? thanks,

There are no docs.  You enable debug tracing with `NODE_DEBUG="net
http" node script.js`.

Note that there are only a couple of modules that actually print trace
info, `git grep NODE_DEBUG` will tell you which ones.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Вадим Барышев  
View profile  
 More options Nov 15 2012, 9:48 am
From: Вадим Барышев <vadimbarys...@gmail.com>
Date: Thu, 15 Nov 2012 06:48:55 -0800 (PST)
Local: Thurs, Nov 15 2012 9:48 am
Subject: Re: debug statement

debug is alias for console.error but only if process.evn.NODE_DEBUG
contains 'module' string, otherwise it just do nothing.

Look at https://github.com/joyent/node/blob/master/lib/module.js#L65

Lines 65-74 is definition of debug

четверг, 15 ноября 2012 г., 18:25:05 UTC+4 пользователь Angelo Chen написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »