Can't turn on AI Debug

I don’t understand how to turn it on. I set " ` " key for Show AI Debug in “Editor Preferences…”

and turn this on

But when i press " ` " in play mode, it opens me console:

press again

and when I press the third time console close.
How to fix it?