Debug functions to TS issues with starting Emacs