This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ionelmc
Recipients Anthony Sottile, Chris Billington, Ivan.Pozdeev, SilentGhost, __Vano, barry, brett.cannon, cheryl.sabella, christian.heimes, eric.smith, eric.snow, ethan smith, ionelmc, jaraco, mhammond, ncoghlan, pitrou, steve.dower, takluyver, terry.reedy, veky
Date 2019-02-26.20:52:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551214361.63.0.240756004462.issue33944@roundup.psfhosted.org>
In-reply-to
Content
> Because there’s no good place to stick a pdb/breakpoint to debug such issues other than site.py, and that usually requires sudo.

Something bad was installed with sudo but suddenly sudo is not acceptable for debugging? This seems crazy.

How exactly are pth files hard to debug? Are those files hard to edit? They sure are, but the problem ain't the point where they are run, it's the fact that a big lump of code is stuffed on a single line. Lets fix that instead!

I've written pth files with lots of stuff in them, and my experience is quite the opposite - they help with debugging. A lot. It's an incredibly useful python feature.

> I don’t remember the details, but yes I have been caught in this trap. 

Maybe if you remember the details we can discuss what are the debugging options, and what can be improved.
History
Date User Action Args
2019-02-26 20:52:41ionelmcsetrecipients: + ionelmc, mhammond, barry, brett.cannon, terry.reedy, jaraco, ncoghlan, pitrou, eric.smith, christian.heimes, SilentGhost, __Vano, eric.snow, takluyver, steve.dower, veky, Ivan.Pozdeev, Anthony Sottile, ethan smith, cheryl.sabella, Chris Billington
2019-02-26 20:52:41ionelmcsetmessageid: <1551214361.63.0.240756004462.issue33944@roundup.psfhosted.org>
2019-02-26 20:52:41ionelmclinkissue33944 messages
2019-02-26 20:52:41ionelmccreate