Checking whether the devtools are open. Enable usefulStackTrace only if devtools are open and the option is enabled.