added a function to display debug in debug_file with development infos (file, func, line)
added error macro to write error in debug file with a return value