Skip to content
cbaxter edited this page Dec 29, 2011 · 5 revisions

Debugging

Debugging with JSTest.NET couldn't be easier. Simply launch the unit test in question with the Visual Studio debugger and you will be prompted to launch the Visual studio Just-In-Time Debugger to debug and step through your JavaScript unit test.

See below for more detail.

Important Notes

By default the test script timeout is 10 seconds; however when running inside the debugger, this timeout is disabled. As such, it is not recommended to ignore any request to launch the "Visual studio Just-In-Time Debugger" as any infinite loops (which of course your code will never have) may leave a CScript process running in the background that must be manually killed.

Launching The Debugger

1. Run Unit Test with Debugger

Attach Debugger

2. Select Desired Debugger

Select Debugger

3. Step Through and Debug Code

Step Through and Debug Code

Clone this wiki locally