I need to debug a compiled python script (pyc file). The original source is not available.
Is there a way to debug the bytecode directly?
The closest thing I can find is to build python with LLTRACE
enabled. The downside of this technique is that I have no control over the execution, and this is not true debugging, as single stepping, setting breakpoints are not available.
Another possible technique is this, but again, this isn't suitable for the same reasons.
Note that decompiling the pyc and debugging the resultant is not possible as the bytecode is obfuscated.