Debugging with flash connecting to database

When debugging from within Flash this doesn’t work properly when my Flash movie connects to a database via PHP. How would I be able to debug from within Flash with my local webserver running? Or isn’t this possible?

Thanks.