Because of the asynchronous nature of X, localizing the source of errors can be very difficult. By putting the Display connection in synchronous mode, the user is certain that requests are carried out immediately and that errors will be reported as soon as the offending requests are finished. The performance of the ProXL system will be severly degraded when operating under this mode, so it should only be used for debugging purposes.

     synchronize(+Displayable, +Goal)

If Displayable is omitted, the default Display is used.

When using synchronize/[1,2], the Displayable connection is put in synchronous mode while the given Goal is executed. Synchronization is turned off when Goal finishes, or if execution is aborted.