You have 2 ways to debug the popup window. Both ways are by using the Chrome DevTools.
Option 1: Right click the extension's action button, and choose Inspect popup
Option 2: Open the popup window, directly in your browser as a tab.
For example, if you extension id is abcdefghijkmnop, and your ...