> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Streaming installation: debugging

> 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:

```cpp theme={null}
      while ( !IsDebuggerPresent() )
      {
          Sleep(1000);
      }  
```

1. Build the application package by using [makepkg](/build/core-features/common/packaging/deployment/makepkg).

2. Register the application, and then install the titles's launch chunk by using [xbapp install (NDA topic)](/tools/tools-console/commandlinetools/xbapp#xbapp-install) (XBOX) or [wdapp install](/tools/tools-pc/commandlinetools/gr-wdapp) (PC):
   * PC: `wdapp install /l <packagepath>`
   * XBOX: `xbapp install /l <packagepath>`

3. Launch the application by using [xbapp launch (NDA topic)](/tools/tools-console/commandlinetools/xbapp) (XBOX) or [wdapp launch](/tools/tools-pc/commandlinetools/gr-wdapp) (PC):
   * PC: `wdapp launch <appusermodelid>`
   * XBOX: `xbapp launch <appusermodelid>`

4. Add a breakpoint in your Visual Studio project.

5. Attach the Visual Studio debugger.

6. Start the installation process by using [xbapp install (NDA topic)](/tools/tools-console/commandlinetools/xbapp) (XBOX) or [wdapp install](/tools/tools-pc/commandlinetools/gr-wdapp) (PC):
   * PC: `wdapp install <packagepath>`
   * XBOX: `xbapp install <packagepath>`
