All places in the UI that display text like the code previews and debug outputs prevent the user from selecting or copying text. This is bad for accessibility, but much worse for debugging Lua errors.
Standard flow is to copy paste the error for troubleshooting, as is I have to type it out manually or take a screen shot.