title: Name.NameCtrl PresenceEnabled in Visual Studio debug window
body: <p>I'm using the following code to get contact presence on a web page:</p>
  
  <pre><code>nameCtrl = new ActiveXObject("Name.NameCtrl.1");
  if (nameCtrl &amp;&amp; nameCtrl.PresenceEnabled) {
      presenceEnabled = true;
      nameCtrl.OnStatusChange = onPresenceStatusChange;
      // ...
  }
  </code></pre>
  
  <p>It works perfectly when I run it in VS but only from a separate Internet Explorer window, doesn't work in the debug IE window started by Visual Studio (so I cannot debug JS code). What happens is that initially nameCtrl.PresenceEnabled is set to true (just after creating ActivexObject) and then is changed to false, I don't get any status updates and all GetStatus calls return 1.</p>
  
  <p>Any ideas how to make it work in Visual Studio?</p>
  
  <p>I'm targeting IE and Lync.</p>