2016-12-16 66 views
0

假設我在調試模式的腳本和console選項卡是開放的,下面是輸出:什麼是'console`標籤評估環境

"C:\Program Files (x86)\JetBrains\WebStorm 2016.2\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=50811 --expose_debug_as=v8debug C:\Users\maksym.koretskyi\Desktop\nodejs\http.js bo----3 
Debugger listening on [::]:50811 

然後我開始輸入表達式,如console.log(3),但沒有輸出:

enter image description here

爲什麼?

回答

2

工作對我來說:

enter image description here

我建議建立支持票

+0

你是什麼版本? –

+0

它是2016.3.2。但是,對我而言,它在2016年的工作方式與之相同。我的Node.js版本是6.9.1 – lena

+0

當我重新啓動時,輸出'console.log(4)'。但是'var a = require.resolve('./ f')'會產生'ReferenceError:require is not defined'。對你起作用嗎?你可以附上截圖嗎? –