2016-10-06 2 views
0

Ich debugge etwas Code mit Visual Studio Code, Node.js, mocha und chai.Fehler beim Debuggen von Mocha mit Visual Studio Code und Node.js

Wenn ich Tests laufen mit schluck ich keine Fehler, aber wenn ich zu debuggen versuchen bekomme ich diesen Fehler:

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#) .... 

Ich weiß nicht, was die Ursache für diesen Fehler sein könnte und wie man vermeiden es.

Antwort

0

Ich habe die Ursache des Problems gefunden. Als ich debugging hatte ich Variable in der Uhr, ich lösche es einfach und das Problem ist nicht mehr passiert. Wahrscheinlich ist es ein Fehler in Visual Studio Code Ich verwende Visual Studio Code 1.6.0 Insider

Verwandte Themen