title: Debugging JavaScript in popup windows on Chrome
body: <p>What is a good way to debug a popup window in Chrome? I need to debug some code that is run when the window is opened and I was wondering if there was a better way to debug it than pressing f12 as soon as the window opens. I'm looking for something similar to using Visual Studio where you can open a window, set a breakpoint on some JS, then open the window back up and VS will break on that breakpoint without you having to do anything.</p>
  
  <p>If it can be done some way on Firefox I'd switch to that, as long as I don't have to use IE.</p>