Index: /trunk/src/VBox/Main/src-client/VideoRec.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/VideoRec.cpp	(revision 65215)
+++ /trunk/src/VBox/Main/src-client/VideoRec.cpp	(revision 65216)
@@ -444,5 +444,5 @@
                     if (cErrors > 0)
                     {
-                        LogRel(("Error %Rrc encoding / writing video frame\n", rc));
+                        LogRel(("VideoRec: Error %Rrc encoding / writing video frame\n", rc));
                         cErrors--;
                     }
@@ -654,9 +654,16 @@
 #endif
 
-    int rc = pStream->pEBML->create(pszFile, RTFILE_O_CREATE | RTFILE_O_WRITE | RTFILE_O_DENY_WRITE, enmMode,
+    uint64_t fOpen = RTFILE_O_WRITE | RTFILE_O_DENY_WRITE;
+#ifdef DEBUG
+    fOpen |= RTFILE_O_CREATE_REPLACE;
+#else
+    fOpen |= RTFILE_O_CREATE;
+#endif
+
+    int rc = pStream->pEBML->create(pszFile, fOpen, enmMode,
                                     WebMWriter::AudioCodec_Opus, WebMWriter::VideoCodec_VP8);
     if (RT_FAILURE(rc))
     {
-        LogRel(("Failed to create the video capture output file \"%s\" (%Rrc)\n", pszFile, rc));
+        LogRel(("VideoRec: Failed to create the video capture output file '%s' (%Rrc)\n", pszFile, rc));
         return rc;
     }
@@ -693,9 +700,10 @@
             else
             {
-                LogRel(("Settings quality deadline to = %s\n", value.c_str()));
+                LogRel(("VideoRec: Settings quality deadline to '%s'\n", value.c_str()));
                 pStream->uEncoderDeadline = value.toUInt32();
             }
         }
-        else LogRel(("Getting unknown option: %s=%s\n", key.c_str(), value.c_str()));
+        else
+            LogRel(("VideoRec: Unknown option '%s' (value '%s'), skipping\n", key.c_str(), value.c_str()));
 
     } while(pos != com::Utf8Str::npos);
@@ -809,5 +817,5 @@
     if (pStream->pEBML->getAvailableSpace() < 0x100000)
     {
-        LogRel(("Storage has not enough free space available, stopping video capture\n"));
+        LogRel(("VideoRec: Not enough free storage space available, stopping video capture\n"));
         return true;
     }
