have to answer my own question, the print command seems not supported
in the debug client of nodejs, following works:
repl
x
then contrl c to go back to the debug mode,
cont

On 3月23日, 上午11时38分, Angelo Chen <[email protected]> wrote:
> Hi,
>
> trying out this debug option in the node 0.10.01, a simple test.js
> like this:
>
> function hello() {
>         var x = 1
>         debugger
>         console.log(x)
>
> }
>
> hello()
>
> node debug test1.js
> cont
> i can see it breaks at line debugger, then I do:
> print x
> but got only three dots: ...
>
> what am I missing here? Thanks,
>
> Angelo

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to