Replies: 1 comment 4 replies
|
I think there's potentially two other ways to do this:
1 is more structured/reusable, whereas 2 may be simpler/faster for one-off things. |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I have some Python tests (typically run with
pants test ...) that I sometimes would like to run under a profiler such aspyinstrument, orcProfile, and some other times even under a C/C++ debugger likegdbin order to break into problematic logic in a given extension module.What is the simplest way to do so?
What I am doing at the moment:
BUILD.pantsfile to add apex_binaryrule for thepython_testrule that I want to instrument/debugif __name__ == "__main__"pants packagefor thepex_binarytargetgdb --args python ./dist/path/to/target.pexnow seems to workAll reactions