```{index} debug, внешние ссылки ``` # Дебаг плагинов python.d ```{seealso} [python.d.plugin - How to debug a python module](https://learn.netdata.cloud/docs/agent/collectors/python.d.plugin/#how-to-debug-a-python-module) ``` ## How to debug a python module ```bash # become user netdata sudo su -s /bin/bash netdata ``` Depending on where `Netdata` was installed, execute one of the following commands to trace the execution of a python module: ```bash # execute the plugin in debug mode, for a specific module /opt/netdata/usr/libexec/netdata/plugins.d/python.d.plugin \ debug trace /usr/libexec/netdata/plugins.d/python.d.plugin \ debug trace ``` Where `[module]` is the directory name under ```{note} If you would like execute a collector in debug mode while it is still running by `Netdata`, you can pass the `nolock` CLI option to the above commands. ``` ## Пример для модуля web_log: ```bash /usr/libexec/netdata/plugins.d/python.d.plugin \ web_log trace debug ```