obci_readmanager.debug module

Recommended tools for OpenBCI debugging.

  • PyCharm
  • install_debug_handler() defined in this file

To connect to existing processes with PyCharm or Pyrasite you need to run is you have a kernel biult with CONFIG_SECURITY_YAMA option:

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

and install python3-dbg package.

obci_readmanager.debug.install_debug_handler() → None[source]

Install debug handler.

Break into a Python console upon:

  • SIGUSR1 (Linux), use: kill -SIGUSR1 [pid] command
  • SIGBREAK (Windows: CTRL+Pause/Break)