If you pause the v8 thread using the debug protocol, then no
javascript code can run in the v8 thread (this includes the stdin
reading code in the readline module).   It's not possible to
introspect and evaluate expressions in a node repl while node itself
is paused.  This kind of introspection will need to be done through
the same debug protocol that paused it in the first place.

On Mon, Aug 27, 2012 at 12:07 PM, Jimb Esser <wastel...@gmail.com> wrote:
> I haven't used readline myself, but I suspect if you use a graphical
> debugger such as node-inspector [1], it's not going to interfere with
> readline.  Also, in node-inspector, you set breakpoints in functions by
> simply clicking next to the line you wish to breakpoint.
>
> [1]  https://github.com/dannycoates/node-inspector
>
>
> On Monday, August 27, 2012 1:51:39 AM UTC-7, TGV wrote:
>>
>> Hi,
>>
>> I'm working on test code that uses readline for ad hoc testing, but I
>> cannot manage to get it to work with the debugger. When I start node in
>> debug mode, my code never gets to read from the terminal. Is there some way
>> around it (except the one where I just discard readline)?
>>
>> On a slightly related note: how does one set breakpoints in functions?
>> When I tell the debugger sb('function()'), it always comes back with Error:
>> "function is not defined" evaluating "function", no matter which function
>> name I fill in; leaving out the parentheses gets "Script : function not
>> found".
>>
>> Thanks,
>>
>>     Theo
>
> --
> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> 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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to