Debugging tests/specs


#1

Apologies if this is an obvious question; the closest forum post I could find was Can’t find package file in developer tools

In the Dev Tools Sources list, my package files appear, but not the spec files, therefore I don’t know how to set a breakpoint to debug my tests.

Is there something I have to do first to load the test files?


#2

You have to run the specs in order to load the spec files.

  • Run window:run-package-specs to open the spec window
  • Open the dev tools of the new spec window
  • Set your breakpoints
  • Click Reload Specs