function pb_set_debug(debug)
% FUNCTION NAME:
%   pb_set_debug
%
% DESCRIPTION:
%   Enable debug log. When enabled, spinapi will generate a file called log.txt,
%   which contains some debugging information. This file is probably not very
%   useful for the end-user, but if you are encountering difficulty, it will 
%   help us to turn debugging on and email us the log along with your support
%   question.
%
% INPUT:
%   debug - Set to 1 to turn on debugging outputs, or 0 to turn off
%
% OUTPUT:
%
% $Revision: R2017a$ 
% $Author: SpinCore Technologies, Inc.$
% $Date: November 17, 2023$
% ------------------------------------------------------------------------------

global SPINAPI_DLL_NAME;

calllib(SPINAPI_DLL_NAME, 'pb_set_debug', debug);

end