Hello,
Sorry, but we don't know what could be wrong on your server. If it's not working when XDebug is not enabled, maybe PHP is not configured properly or some extension is missing. Please check your server logs.
We recommend you to test and run the included samples using PHP CLI mode and check if the output files are generated correctly. It also seems your project uses PHP namespaces but the trial package of phpdocx doesn't support them; you need to use an Advanced or Premium that supports PHP namespaces.
The trial package is encrypted and can't be debugged, but if you purchase a license you can see and change the source code to debug the library if needed. If you purchase a license and still have the same problems, please contact us again and one the members of the dev team will connect to your server to check it and find the source of the problem.
Regards.