Partager via


Streaming installation: debugging

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

Use the following steps to pause the title's streaming installation until the debugger is connected to the title.

  1. In the application's main method, include the following code before any other code:

    while ( !IsDebuggerPresent() )
    {
        Sleep(1000);
    }  
    
  2. Build the application package by using makepkg.

  3. Register the application, and then install the titles's launch chunk by using xbapp install (NDA topic)Autorisation obligatoire (Xbox) or wdapp install (PC):

    • PC: wdapp install /l <packagepath>
    • Xbox: xbapp install /l <packagepath>
  4. Launch the application by using xbapp launch (NDA topic)Autorisation obligatoire (Xbox) or wdapp launch (PC):

    • PC: wdapp launch <appusermodelid>
    • Xbox: xbapp launch <appusermodelid>
  5. Add a breakpoint in your Visual Studio project.

  6. Attach the Visual Studio debugger.

  7. Start the installation process by using xbapp install (NDA topic)Autorisation obligatoire (Xbox) or wdapp install (PC):

    • PC: wdapp install <packagepath>
    • Xbox: xbapp install <packagepath>