[]错误提示很好,但是还是不知道我代码哪里出了问题

Error processing "evaluate": TypeError: Cannot read property 'api' of undefined
    at ChromeConnection.get api [as api] (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeConnection.js:56:28)
    at ChromeDebugAdapter.get chrome [as chrome] (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeDebugAdapter.js:40:38)
    at ChromeDebugAdapter.globalEvaluate (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeDebugAdapter.js:1022:20)
    at ChromeDebugAdapter.evaluate (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeDebugAdapter.js:944:32)
    at dispatchRequest (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeDebugSession.js:122:68)
    at ProtocolServer._handleData (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\node_modules\vscode-debugadapter\lib\protocol.js:104:38)
    at Socket.<anonymous> (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\node_modules\vscode-debugadapter\lib\protocol.js:24:60)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at rea[...]
Error processing "evaluate": TypeError: Cannot read property 'api' of undefined
    at ChromeConnection.get api [as api] (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeConnection.js:56:28)
    at ChromeDebugAdapter.get chrome [as chrome] (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeDebugAdapter.js:40:38)
    at ChromeDebugAdapter.globalEvaluate (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeDebugAdapter.js:1022:20)
    at ChromeDebugAdapter.evaluate (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeDebugAdapter.js:944:32)
    at dispatchRequest (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\out\src\chrome\chromeDebugSession.js:122:68)
    at ProtocolServer._handleData (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\node_modules\vscode-debugadapter\lib\protocol.js:104:38)
    at Socket.<anonymous> (d:\LayaBox\LayaAirIDE_1_7_6_beta\resources\app\extensions\laya-debug\node_modules\vscode-chrome-debug-core\node_modules\vscode-debugadapter\lib\protocol.js:24:60)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at rea[...]
 
已邀请:

cuixueying

赞同来自:

你打断点,通过堆栈看下,而且你上面只贴报错,没有重现示例和步骤,我们也看不出来!

要回复问题请先

商务合作
商务合作