Streaming Installation: Debugging

To assist with debugging your title, you can temporarily halt streaming installation of your title and connect the debugger.

To pause streaming installation of a title until the debugger is connected to the title

  1. Include the following code in the application’s main method before the call to CoreApplication::Run.
    while ( !IsDebuggerPresent() )
    {
        Sleep(1000);
    }  
    
  2. Build the application package using Make Package (makepkg.exe).
  3. Register the application and copy the application’s launch chunk to the development kit using xbapp install.
    xbappinstall/lpackagepath
  4. Mark the application package as debuggable using xbapp debug.
    xbappdebugpackagefullname
  5. Launch the application using xbapp launch.
    xbapplaunchappusermodelid
  6. Add a breakpoint in your Visual Studio project.
  7. Attach the Visual Studio debugger following the directions outlined in Debugging Xbox One Projects.
  8. Start the installation process using xbapp install.
    xbappinstallpackagepath