diff --git a/iocsh/autosave.iocsh b/iocsh/autosave.iocsh
index c623056336e4b5e5e77e6132f7120e6a0129cf38..204959ce50a533f6ae82546a57890fea2c37b118 100644
--- a/iocsh/autosave.iocsh
+++ b/iocsh/autosave.iocsh
@@ -16,6 +16,7 @@
 #- AUTOSAVE_VALUES_PERIOD_PASS0   - Optional, Default 5
 #- AUTOSAVE_VALUES_PERIOD_PASS1   - Optional, Default 10
 #- AUTOSAVE_SETTINGS_PERIOD       - Optional, Default 5
+#- AUTOSAVE_DEBUG_MODE            - Optional, Default 0
 
 set_savefile_path    ("$(AS_TOP)/$(IOCDIR)", "/save")
 set_requestfile_path ("$(AS_TOP)/$(IOCDIR)", "/req")
@@ -27,7 +28,7 @@ system("install -d $(AS_TOP)/$(IOCDIR)/req")
 save_restoreSet_status_prefix("$(IOCNAME):as-")
 
 #- Debug-output level
-save_restoreSet_Debug(0)
+save_restoreSet_Debug($(AUTOSAVE_DEBUG_MODE=0))
 
 #- Ok to save/restore save sets with missing values (no CA connection to PV)?
 save_restoreSet_IncompleteSetsOk($(AUTOSAVE_INCOMPLETE=1))