Add JS breakpoint into Debug.assert failure

I was talking to @DanielRosenwasser the other day and mentioned this - it's been a floating patch that I keep reapplying on top of my own changes locally. Turns out, it's pretty useful to have a preset breakpoint when an assertion is violated.
This commit is contained in:
Wesley Wigham
2015-10-21 16:11:22 -07:00
parent 402baba28b
commit 8658bf487e

View File

@@ -832,7 +832,7 @@ namespace ts {
if (verboseDebugInfo) {
verboseDebugString = "\r\nVerbose Debug Information: " + verboseDebugInfo();
}
debugger;
throw new Error("Debug Failure. False expression: " + (message || "") + verboseDebugString);
}
}
@@ -851,4 +851,4 @@ namespace ts {
}
return copiedList;
}
}
}