Run application binary directly in a terminal to get TCL output from puts etc
$ /Applications/Hex\ Fiend.app/Contents/MacOS/Hex\ FiendNow in some template do puts test and you will see test on the terminal
Wrap code in a catch and print error on crash. This will hide the error from Hex Fiend and also show the parial tree.
if [catch {
# call parse code
}] {
puts $errorInfo
}