Python, GDB and PDB fun

1. Starting python directly from gdb (useful in case of debugging native calls)

gdb -ex r --args python script.py args

2. Debugging inside Python using pdb (gdb style)

python -m pdb myscript.py