@Mark Hahn javascript contexts are isolated. I mean normally, because node 
executes each module in its own context. 
So what you'll have to do is run the console as part of your module. At the 
bottom of your closure function, or where it's more appropriate do this

*eval(require('fs').readFileSync('./node-codein/debugger.js','utf-8'));*
instead of*
*
*require('node-codein')*
*
*
and the console should get access to your variables.*
*

@ryandesign
Yes, thanks. I added a license

On Saturday, June 30, 2012 6:54:56 AM UTC+3, Mark Hahn wrote:
>
> I tried it out but I'm confused.  I don't use any globals in node, I only 
> use local vars in modules that are wrapped in a function (standard 
> coffeescript).  What can I see in my app?  Is this only for node core 
> developers?
>
> On Fri, Jun 29, 2012 at 2:18 PM, sahal wrote:
>
>> Oooooo so you guys are command-line freaks I get it. But anyway, it's 
>> okey, done all that.
>>
>> I think it did good since most commands ended with 201.
>> I tried "git search codein" but it's been "building the local index for 
>> the first time" for some time now.
>>
>> Other than that.. I've added the module to the user-contributed list on 
>> github.
>>
>> Thanks. Questions?
>>
>> @Magnus Skog (@ralphtheninja) yes there's also a button for that in the 
>> bottom right corner.
>>  -- 
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines: 
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to