I'll try; I actually think I need that too. Can you please file the feature
request on github?
On Friday, July 6, 2012 8:40:58 PM UTC+3, Jeff Barczewski wrote:
>
> @sahal could you provide some sugar for this, so it is easier to do? It
> is becoming more and more common to write node modules that are also
> wrapped in functions (for AMD or browser support), so it would be great if
> this were easier to access.
>
>
> On Saturday, 30 June 2012 05:07:52 UTC-5, sahal wrote:
>>
>> @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.*
>> *
>>
>>
>>>
--
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