Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Issue: InvalidOperationException in DebugEngine.EngineUtils.RequireOk causes Visual Studio crash [684]

$
0
0
Exception details underneath.

Steps to reproduce:

1. Download Christophe Conraets' NodeCellar sample app using "git clone https://github.com/ccoenraets/nodecellar".
2. Create a new project based on existing source code and point the wizard at the nodecellar directory. Accept defaults for all other settings.
3. Right-click on npm node and click "Install Missing npm Modules".
4. Open server.js.
5. Set a breakpoint on the line that reads "app.get('/wines', wine.findAll);"
6. Hit F5 to debug. The console will open with node running on port 5858 but nothing else will happen, presumably because no Launch URL is set.
7. Enter "http://localhost/5858" as the Launch URL in project properties.
8. Close the console window that opened, as if you want to restart debugging (this was my original intent).
9. Exception will be thrown and Visual Studio will crash.


---------------------------
Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue
---------------------------
An unhandled exception is about to terminate the process. Exception info:
System.InvalidOperationException: Operation is not valid due to the current state of the object.

at Microsoft.NodejsTools.Debugger.DebugEngine.EngineUtils.RequireOk(Int32 hr) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Debugger\DebugEngine\EngineUtils.cs:line 29

at Microsoft.NodejsTools.Debugger.DebugEngine.AD7Engine.Send(IDebugEvent2 eventObject, String iidEvent, IDebugProgram2 program, IDebugThread2 thread) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Debugger\DebugEngine\AD7Engine.cs:line 921

at Microsoft.NodejsTools.Debugger.DebugEngine.AD7Engine.Send(IDebugEvent2 eventObject, String iidEvent, IDebugThread2 thread) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Debugger\DebugEngine\AD7Engine.cs:line 928

at Microsoft.NodejsTools.Debugger.DebugEngine.AD7Engine.OnThreadExited(Object sender, ThreadEventArgs e) in c:\GitWork\rgnpm01\Nodejs\Product\Nodejs\Debugger\DebugEngine\AD7Engine.cs:line 957

at Microsoft.NodejsTo......

<truncated>
---------------------------
Abort Retry Ignore
---------------------------


Viewing all articles
Browse latest Browse all 4630

Trending Articles