Add a project or page selection to run the script console code as though it was within the context of a page. For instance, in Perspective, this would allow properties, even session or custom properties, to resolve correctly during testing. It doesn't seem possible at first blush, but you guys have done the impossible before!