Make a dummy REQUEST object in Zope debugger
It is listed on zope.org, but I'll just paste it in here from their pages in case it disappears:
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManager import setSecurityPolicy
from Testing.makerequest import makerequest
from Products.CMFCore.tests.base.security import PermissiveSecurityPolicy, OmnipotentUser
_policy=PermissiveSecurityPolicy()
_oldpolicy=setSecurityPolicy(_policy)
newSecurityManager(None, OmnipotentUser().__of__(app.acl_users))
app=makerequest(app)
and then the request object is in app.REQUEST i noticed. I used the code snippet today to figure out why something did not work in portal_transforms in Plone.
Some things you may want to call in the debugger may require a real REQUEST object, as if they were being published on the web. This zopelabs recipe shows how to make one:
Read more: Zope 2 wiki How to fake REQUEST in debugger