title: How can I debug a CE app on the device?
body: <p>I asked a similar, but not identical, question <a href="https://stackoverflow.com/questions/23251972/why-is-my-ce-app-refusing-to-run">here</a></p>
  
  <p>My Windows CE app won't even start up on the handheld device (an old version of it does, but not the new version).</p>
  
  <p>It builds, copies over, but just refuses to run; it "flashes" when I 2-click it, but that's it. No err msg, just won't budge.</p>
  
  <p>I added a global exception handler in hopes it would catch the problem and give me a glimpse into it with this code:</p>
  
  <pre><code>public static int Main(string [] args)
  {
      try
      {
          // A home-brewed exception handler (named ExceptionHandler()) is already 
  defined, but I'm adding a global
          // one for UNHANDLED exceptions (ExceptionHandler() is explicitly called throughout the code in catch blocks).
          AppDomain currentDomain = AppDomain.CurrentDomain;
          currentDomain.UnhandledException += new UnhandledExceptionEventHandler(GlobalExceptionHandler);
  
          . . .
  
          // Instantiate a new instance of Form1.
          frmCentral f1 = new frmCentral();
          f1.Height = devIn.GetScreenHeight(); 
          f1.Text = SSCS.GetFormTitle("The Return of Sancho Panza", "", "");
  
          Application.Run(f1);
  
          devIn.Close();
  
          Application.Exit();
          return 0;
      }
      catch(Exception ex)
      {
          SSCS.ExceptionHandler(ex, "Main");
          return 0;
      }
  } 
  
  static void GlobalExceptionHandler(object sender, UnhandledExceptionEventArgs args)
  {
      Exception e = (Exception)args.ExceptionObject;
      MessageBox.Show(string.Format("GlobalExceptionHandler caught {0}", e.Message));
  }
  </code></pre>
  
  <p>...but still no go; there is nary a peep to be heard from the little guy.</p>
  
  <p>Is there anything I can do to find out what is happening / why the little beast refuses to respond to its wakeup call?</p>
  
  <h2>UPDATE</h2>
  
  <p>Could the problem be related to <a href="https://stackoverflow.com/questions/23226794/how-can-i-resolve-the-invalid-resx-file-cannot-find-valid-resheader-tags-fo">this</a>, and if so, how to solve it?</p>
  
  <p>The circumstance that both the updated version of this existing app AND <a href="https://stackoverflow.com/questions/23251972/why-is-my-ce-app-refusing-to-run">a brand new and simple app</a> refuse to run indicate there is something fundamentally flawed somewhere in the coding, building, or deployment process.</p>