How to solve empty source files when debugging specs?


#1

When I debug my package specs by:

  1. View > Developer > Run Package Specs
  2. Show inspector
  3. Set breakpoint, then try to step through my sources

It’s often the case that I’ll step into one of my source files and while I can step through that files code, the source code display in the debugger is empty. Like this:

It seems timing based… doesn’t always happen even with the same exact source code and breakpoints. Also seems to happen more if I set a breakpoint in a spec that runs early, as opposed to a spec that runs after many other specs have run.

Any idea how to work around this for good?


#2

Just found out that if I disable source maps in the chrome dev tools then the problem goes away… though ideally I’d like to see my coffee script sources too. So still looking for a fix.