diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper
index ffd397b2..b6eb0045 100755
--- a/data_from_portwine/scripts/functions_helper
+++ b/data_from_portwine/scripts/functions_helper
@@ -1726,7 +1726,9 @@ start_portwine () {
     check_variables VK_LOADER_DEBUG none
     check_variables VKBASALT_LOG_LEVEL none
     check_variables DXVK_NVAPI_LOG_LEVEL none
-    if [[ "${PW_LOG}" == 1 ]] ; then
+    if [[ "${PW_LOG}" == 1 ]] \
+    || [[ ! -z "$$PW_DEBUG" ]]
+    then
         export WINEDEBUG="fixme-all,err+loaddll,err+dll,err+file,err+reg"
         export WINE_MONO_TRACE="E:System.NotImplementedException"
         export VKBASALT_LOG_LEVEL="error"