Skip to content

Commit

Permalink
Merge pull request #198 from mousetraps/i120
Browse files Browse the repository at this point in the history
Fix #120 VS2015 Break on exception does not work with Error() by default
  • Loading branch information
mousetraps committed Jun 9, 2015
2 parents a602e58 + 421dcd4 commit a35e215
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Nodejs/Product/Nodejs/NodejsPackage.Debugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
//
//*********************************************************//

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.NodejsTools.Debugger.DebugEngine;
using Microsoft.VisualStudio.Debugger.Interop;
using Microsoft.VisualStudioTools;
Expand All @@ -27,6 +22,10 @@ namespace Microsoft.NodejsTools {
// Keep declared exceptions in sync with those given default values in NodeDebugger.GetDefaultExceptionTreatments()
[ProvideDebugException(AD7Engine.DebugEngineId, "Node.js Exceptions", State = enum_EXCEPTION_STATE.EXCEPTION_NONE)]
[ProvideDebugException(AD7Engine.DebugEngineId, "Node.js Exceptions", "Error", State = enum_EXCEPTION_STATE.EXCEPTION_NONE)]
#if DEV14_OR_LATER
// VS2015's exception manager uses a different nesting structure, so it's necessary to register Error() explicitly.
[ProvideDebugException(AD7Engine.DebugEngineId, "Node.js Exceptions", "Error", "Error()", State = enum_EXCEPTION_STATE.EXCEPTION_NONE)]
#endif
[ProvideDebugException(AD7Engine.DebugEngineId, "Node.js Exceptions", "Error", "Error(EACCES)", State = enum_EXCEPTION_STATE.EXCEPTION_NONE)]
[ProvideDebugException(AD7Engine.DebugEngineId, "Node.js Exceptions", "Error", "Error(EADDRINUSE)", State = enum_EXCEPTION_STATE.EXCEPTION_NONE)]
[ProvideDebugException(AD7Engine.DebugEngineId, "Node.js Exceptions", "Error", "Error(EADDRNOTAVAIL)", State = enum_EXCEPTION_STATE.EXCEPTION_NONE)]
Expand Down

0 comments on commit a35e215

Please sign in to comment.