When using JSR223 element, it's mostly by a script file. But you can't see the contents of the file in JMeter GUI which make it hard to debug, I suggest a Preview button that will load the contents of the file to the (big and empty) Script field in view only mode (disable field).
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4849