Index: trunk/FACT++/src/fadctrl.cc
===================================================================
--- trunk/FACT++/src/fadctrl.cc	(revision 11355)
+++ trunk/FACT++/src/fadctrl.cc	(revision 11356)
@@ -872,4 +872,14 @@
         for (BoardList::iterator i=fBoards.begin(); i!=fBoards.end(); i++)
             i->second->SetDebugTx(evt.GetBool());
+
+        return T::GetCurrentState();
+    }
+
+    int SetDebugEb(const EventImp &evt)
+    {
+        if (!CheckEventSize(evt.GetSize(), "SetDebugEb", 1))
+            return T::kSM_FatalError;
+
+        SetDebugLog(evt.GetBool());
 
         return T::GetCurrentState();
@@ -1392,5 +1402,5 @@
             (boost::bind(&StateMachineFAD::CmdEnable, this, _1, FAD::kCmdTriggerLine))
             ("Incoming triggers can be accepted/will not be accepted");
-        T::AddEvent("SET_DEBUG_MODE", "B:1")
+        T::AddEvent("ENABLE_COMMAND_SOCKET_MODE", "B:1")
             (boost::bind(&StateMachineFAD::CmdEnable, this, _1, FAD::kCmdSocket))
             ("Set debug mode (yes: dump events through command socket, no=dump events through other sockets)");
@@ -1468,4 +1478,8 @@
 	     "|debug[bool]:disable or enable debug output for transmitted data (yes/no)");
 
+        T::AddEvent("SET_DEBUG_EVENT_BUILDER_OUT", "B:1")
+            (boost::bind(&StateMachineFAD::SetDebugEb, this, _1))
+	    ("");
+
         T::AddEvent("PRINT_EVENT", "S:1")
             (boost::bind(&StateMachineFAD::PrintEvent, this, _1))
