Index: /trunk/include/VBox/dbggui.h
===================================================================
--- /trunk/include/VBox/dbggui.h	(revision 12434)
+++ /trunk/include/VBox/dbggui.h	(revision 12435)
@@ -69,5 +69,12 @@
  * The first byte is the minor version, the 2nd byte is major version number.
  * The high 16-bit word is a magic.  */
-#define DBGGUIVT_VERSION 0xbead0100
+#define DBGGUIVT_VERSION    UINT32_C(0xbead0100)
+/** Macro for determining whether two versions are compatible or not.
+ * @returns boolean result.
+ * @param   uVer1   The first version number.
+ * @param   uVer2   The second version number.
+ */
+#define DBGGUIVT_ARE_VERSIONS_COMPATIBLE(uVer1, uVer2) \
+    ( ((uVer1) & UINT32_C(0xffffff00)) == ((uVer2) & UINT32_C(0xffffff00)) )
 
 
Index: /trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp	(revision 12434)
+++ /trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp	(revision 12435)
@@ -270,7 +270,11 @@
         dbgStatisticsAction = new QAction (this);
         dbgCommandLineAction = new QAction (this);
+        if (vboxGlobal().getDebuggerModule()== NIL_RTLDRMOD)
+        {
+            dbgStatisticsAction->setEnabled (false);
+            dbgCommandLineAction->setEnabled (false);
+        }
         dbgLoggingAction = new QAction (this);
         dbgLoggingAction->setCheckable (true);
-        dbgLoggingAction->setIcon (VBoxGlobal::iconSet (":/start_16px.png")); /// @todo find the default check boxes.
     }
     else
@@ -3462,8 +3466,16 @@
         if (RT_SUCCESS (rc))
         {
-            dbgAdjustRelativePos();
-            return true;
-        }
-        LogRel(("DBGGuiCreate failed, rc=%Rrc\n", rc));
+            if (    DBGGUIVT_ARE_VERSIONS_COMPATIBLE(mDbgGuiVT->u32Version, DBGGUIVT_VERSION)
+                ||  mDbgGuiVT->u32EndVersion != mDbgGuiVT->u32Version)
+            {
+                dbgAdjustRelativePos();
+                return true;
+            }
+
+            LogRel(("DBGGuiCreate failed, incompatible versions (loaded %#x/%#x, expected %#x)\n",
+                    mDbgGuiVT->u32Version, mDbgGuiVT->u32EndVersion, DBGGUIVT_VERSION));
+        }
+        else
+            LogRel(("DBGGuiCreate failed, rc=%Rrc\n", rc));
     }
     else
