No. AppleScript will NOT report a backtrace for an error.
You have to roll-your-own.
I use something like this:
try
MyFirstHandler()
on error errMsg
number
ErrNbr partial result
partialResult from
from_ to
to_
log
errMsg
log
ErrNbr
log
partialResult
log
from_
log
to_
end try
on MyFirstHandler()
set
handlerName to "MyFirstHandler"
try
set
bb to 3 * "ccc"
on
error errMsg number
ErrNbr partial result
partialResult from
from_ to
to_
log
errMsg
log
ErrNbr
log
partialResult
log
from_
log
to_
error
errMsg from
handlerName
end
try
end MyFirstHandler