2016-10-06 92 views
0

我正在使用Visual Studio代碼,Node.js,mochachai調試一些代碼。使用Visual Studio代碼和Node.js調試Mocha時出現錯誤

當我運行使用一飲而盡測試中,我沒有錯誤,但是當我嘗試調試我得到這個錯誤:

Stacktrace (bbbbbbbb-bbbbbbbb) 00000391AD6041E9 0000000000000000: 
==== JS stack trace ========================================= 

Security context: 00000391AD6C9FC9 <JS Object>#0# 
    1: /* anonymous */ [00000391AD604189 <undefined>:1] [pc=000000FE0EB996F4] (this=000000EE5546EB79 <JS Global Object>#1#) 
    5: evaluate [native mirrors.js:1062] [pc=000000FE0E48FB1D] (this=000002F14C5E8D69 <a FrameMirror with map 0000000162ACAD09>#2#,source=000002F14C5E8C01 <String[10]: etapa.nome>,disable_break=00000391AD604231 <true>,opt_context_object=00000391AD604189 <undefined>) 
    6: evaluateRequest_ [native debug.js:1453] [pc=000000FE0E48DA40] (this=000002F14C4BC571 <a DebugCommandProcessor with map 000002A9FEDB6519>#3#,aM=000002F14C5E8B69 <an Object with map 000002A9FEDB6EB9>#4#,aT=000002F14C5E8CA9 <a ProtocolMessage with map 000002A9FEDBBD71>#5#) 
    7: /* anonymous */ [00000391AD604189 <undefined>:1] [pc=000000FE0E49AD7A] (this=000002F14C4BC571 <a DebugCommandProcessor with map 000002A9FEDB6519>#3#,e=000002F14C5E8B69 <an Object with map 000002A9FEDB6EB9>#4#,r=000002F14C5E8CA9 <a ProtocolMessage with map 000002A9FEDBBD71>#5#) 
    8: processDebugJSONRequest [native debug.js:961] [pc=000000FE0E48C821] (this=000002F14C4BC571 <a DebugCommandProcessor with map 000002A9FEDB6519>#3#,json_request=000002F14C5E8AB9 <String[150]: {"command":"vscode_evaluate","arguments":{"expression":"etapa.nome","disable_break":true,"maxStringLength":10000,"frame":0},"type":"request","seq":31}>) 
    9: processDebugRequest [native debug.js:854] [pc=000000FE0E48C0D3] (this=000002F14C4BC571 <a DebugCommandProcessor with map 000002A9FEDB6519>#3#,aM=000002F14C5E8AB9 <String[150]: {"command":"vscode_evaluate","arguments":{"expression":"etapa.nome","disable_break":true,"maxStringLength":10000,"frame":0},"type":"request","seq":31}>) 
    14: /* anonymous */ [c:\node\myproject\testes\unitarios\modules-test\pipeline-test\pipeline.spec.js:220] [pc=000000FE0EB4A653] (this=000001BABEC3BD79 <a Context with map 000002A9FEDB5549>#6#,done=000002F14C4B7CD1 <JS Function (SharedFunctionInfo 0000002C47494A39)>#7#) 
    15: callFnAsync [C:\node\myproject\node_modules\mocha\lib\runnable.js:362] [pc=000000FE0EB3F5D3] (this=000000EE5546EB79 <JS Global Object>#1#,fn=000001BABEC41049 <JS Function (SharedFunctionInfo 00000066AD2F8ED9)>#8#) 
    16: run [C:\node\myproject\node_modules\mocha\lib\runnable.js:314] [pc=000000FE0E4E1466] (this=000001BABEC40111 <a Test with map 0000000162A6C7A1>#9#,fn=000002F14C4B73B1 <JS Function (SharedFunctionInfo 0000002C47467429)>#10#) 
    17: runTest [C:\node\myproject\node_modules\mocha\lib\runner.js:438] [pc=000000FE0E4E0B1E] (this=000002B3478F53B9 <a Runner with map 0000000162AC7B31>#11#,fn=000002F14C4B73B1 <JS Function (SharedFunctionInfo 0000002C47467429)>#10#) .... 

我不知道這可能是此錯誤的原因以及如何避免它。

回答

0

我發現問題的原因。 當我調試時,手錶中有變量,我只是刪除它,問題不再發生。 可能是Visual Studio Code中的錯誤我正在使用Visual Studio Code 1.6.0內部人員

相關問題