I have a constraint that will not let me add it if the conditions are invalid, but the constraint allows invalid data into the table after it is added. I would like to debug what it is doing at run time, but I cannot figure out how to create either the proper trace or how to print some sort of debug message from a constraint.
I have not been able to find any resources to do this.