Revert "Replacing debug monitor"

This reverts commit 2d508823b6eff95836c726c0ce990d6654992c52.