Skip to main content

Enable remote debugging with winpdb in Zope / Plone

Project description

Introduction

z3c.winpdb is a trivial package that calls rpbd2.start_embedded_debugger when IDatabaseOpenedWithRootEvent is fired during the startup of the Zope / Plone instance thus making it possible to debug the running instance with winpdb.

Two environment variables are evaluated:

RPDB2_ENABLE must be set to “true” for start_embedded_debugger to be called. You most probably don’t want this in a production environment. Default is “false”.

In RPDB2_PASSWD you can set the password needed to attach winpdb to the embedded debugger. Default is “passwd”.

Note

You can’t use z3c.winpdb and use python profiling concurrently, as this causes an infinite recursion in rpdb2’s CDebuggerCoreThread.profile_recursion method. So if you use z3c.winpdb make sure to remove any publisher-profile-file directive from zope.conf file.

Changelog

0.1.4

  • Bugfix: configure.zcml was missing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

z3c.winpdb-0.1.4.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file z3c.winpdb-0.1.4.tar.gz.

File metadata

  • Download URL: z3c.winpdb-0.1.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for z3c.winpdb-0.1.4.tar.gz
Algorithm Hash digest
SHA256 85af418dc163ce6e946b6b90f319b3b2dcc323eaaa2c515670e0eb99cdd78caf
MD5 4de521b9ff8f60bafa6b1b0444399272
BLAKE2b-256 c41e8cc19487924f47e9de111986d629b3ba81a2b482503ffa7c73445c9a40a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page