pdbtrack not working
My workflow for debugging is to put pdb.set_trace()
in the code and run test inside a shell buffer. When the breakpoint is hit I expect pdbtrack to work and show the code in the other buffer.
What does happen is the breakpoint is hit but pdbtrack doesn't work.
After some experimentation I've checked and seen that py-pdbtrack-do-tracking-p
is t
after launching emacs and the shell. Even so, pdbtracking doesn't happen.
If, however, I toggle the value off then on again using py-pdbtrack-toggle-stack-tracking
I get a message "Enabled Python's pdbtrack" and then it begins working. It continues to work for the life of that shell. If the shell buffer is deleted and a new one created then pdbtrack does not work until the toggle happens.
Also note there may be some interaction with elpy. If elpy is disabled in .emacs then pdbtrack works with no work-arounds.
Versions: GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, modified by Debian py-version is 6.2.3 installed from elpa elpy-20170701.1412