How can I debug my program generated by mlir dialect?

For example, I write my program in build-in dialects, and then use mlir tools to turn it an executable file. But now I find some runtime error in my program. How to debug?