Install and run Pyrasite

84 || 0  || 2018-04-16 09:06:45 || root || || Bash

Steps required to install and run pyrasite package. Pyrasite is a library and a set of tools for injecting code into running Python programs.

More details in official documentation:

# Install required packages
sudo apt-get install gdb python-dbg
# Make sure that gdb can find debugging symbols for the virtualenv
sudo mkdir -p /usr/lib/debug/opt/edx
sudo ln -s /usr/lib/debug/{usr,opt/edx}/bin
# Enable ptrace
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

# Install required pip packages
pip install Cython
pip install pyrasite meliae urwid

# Start pyrasite shell
pyrasite-shell PID