I want to debug (examine DOM, use the interactive JS console, etc) part of a web application that is inside a modal dialog that was created by showModalDialog().
showModalDialog()
i do it by creating an error in the js code, which then brings up the error window asking if you want to debug the script.
one way to do that would be to call a non-existent method somewhere in the code.
e.g. blabla();