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