#20827 Added more debug info
#20827 Fixed bug with listeners stopping on editing controller or exiting from rails console