Monday 29 April 2019

debug js test from VS via Chutzpah

ugh.

Add a breakpoint in visual studio


Run the unit test via the test explorer. The test runs and a page opens in VS and explodes. I dunno why, whatever, ignore that bit; just leave it open.


When chutzpah runs the test it creates an html file, because you're paused in debug in VS then the file will stay there, go to the root of the project (or whereever you chutzpah.json file is) and locate the html file


Open the file in chrome (or whatever) and then use the browser dev tools to debug, or add console.logs to your unit test or something


2 comments: