How to get errors from a SWF embedded in a web page

I have a SWF that I embed into a web page and pass it some flash vars. For some reason it is not working and I can’t figure out why. I have had it working in the past but I made some changes and now it is broken.

Is there a way to display any error messages from the SWF itself?