title: Code is working only if the breakpoint is placed in a method c#
body: <p>I have a left mouse down event. My application is working as expected only if I place a breakpoint in this method. If I remove the breakpoint and run the code the functionality is not working.</p>
  
  <p>Is there any specific reason why this is happening?? PFB event code</p>
  
  <pre><code>internal void LeftMouseDown(object sender, MouseEventArgs e)
  {
      try
      {
          recorderData.CloseRecordedActionWindows();
  
          if (CommonRecorderHelper.IsCursorInsideRecorder())
              return;
  
                        recorderData.m_lastPremitiveAction = PrimitiveMouseEvent.LeftButtonDown.ToString();
          recorderData.m_lastMouseDownLocation = e.Location;
          recorderData.m_IsAssertionStarted = false;
          recorderData.m_readyForHookDisconnect = false;
          recorderData.m_previousKeyboardSUITControl = null;
  
          recorderData.m_RecordedValue.ResetValues(!recorderData.m_RecordedValue.IsModifierKeyPressed());
  
          if (recorderData.m_RecordedValue.IsModifierKeyPressed())
              recorderData.m_IsModifierKeyPressedForMouseAction = true;
  
          UpdateRecorderFormWithActions(recorderData.m_lastMouseDownLocation, PrimitiveMouseEvent.LeftButtonDown);
  
      }
      catch (Exception ex)
      {
          recorderData.m_RecordingStopped = true;
          recorderData.m_mouseDownOnValidationBtn = false;
          SUITLogger.ReportMessage(ex);
      }
      finally
      {
                  recorderData.m_EarlierX = e.X;
          recorderData.m_EarlierY = e.Y;
      }
  }
  </code></pre>