debug_message/0 declaration


:- debug_message.


Prolog clauses following this directive will be compiled to send messages “carefully.”

That is, a message sent to an object that does not understand the message will raise an exception, which describes both the message and the object receiving it. This also catches attempts to send an unbound message, to send a message to an unbound object, and similar errors.

See Also


Send feedback on this subject.