2011-12-05 38 views
1

從命令行console.trace()的輸出,輸入console.trace()會吐出:瞭解節點

at repl:1:10 
at REPLServer.eval (repl.js:80:21) 
at Interface.<anonymous> (repl.js:182:12) 
at Interface.emit (events.js:67:17) 
at Interface._onLine (readline.js:162:10) 
at Interface._line (readline.js:426:8) 
at Interface._ttyWrite (readline.js:603:14) 
at ReadStream.<anonymous> (readline.js:82:12) 
at ReadStream.emit (events.js:88:20) 
at ReadStream._emitKey (tty.js:309:10) 

有人能迅速走在我低谷這個爛攤子?

回答

2

這是來自您當前堆棧的打印。顯然你從eval()repl.js (line 80, column 20)中調用的某個腳本調用了console.trace()repl.js line 182調用了這個腳本,events.js (line 67)等調用了這個腳本。你必須自上而下讀取它。

+0

謝謝。第一行是什麼:'at repl:1:10'? – Randomblue

+0

repl是您調用'eval'的JavaScript文件的名稱。因此,node.js中的新範圍將被命名爲您正在評估的文件。這可能是你的eval腳本的第一行,第10行拋出異常,但這些結果可能是不可預知的,所以它可能是其他地方。 –