debugging - Debug own project installed in Python library using pyCharm? -
i have taken on responsibility large project has existed quite while in our company. 1 of open tasks create working setup.py , install , sub-packages in site-packages or dist-packages.
it contains executable scripts installed bin (of active virtualenv if there one).
i can install whole project in site-packages using distutils respectively python setup.py install. however, since project has banked on existence of specific directory structure have kind of reverse engineer how scripts deal directory structure , fix path voodoo work installed packages.
for purpose know if there way use pycharm debug project in installed state. is, have project opened in source directory (its git clone) execute setup.py. project's scripts work there because said specific directory structure available.
so debug project's scripts in context of installed packages (library) instead of source folder, maybe edit them directly in library folder, keep in sync source folder.
does make sense? possible? or there other methods, maybe royal road of debugging bugs/errors related folder structure in projects installed local python library?
Comments
Post a Comment