The indicator depends on the live layer tree commits coming in, including layer creation, so it can't be turned on after the root layer is created. Even a refresh is insufficient to get it working; the debug indicator really needs to exist from the first commit. So, let's not even attempt to dynamically enable the indicator.
Created attachment 234434 [details] patch
http://trac.webkit.org/changeset/170838