aceEditor.debugShowToken()
isn’t supposed to return anything, but after calling it you can mouseover things in code editor and it’ll show what they are in status bar. Calling it again toggles it back off.
Selectors for code editor elements are commonly like #main .ace-tm .ace_local
(when type is shown as “local”)