Run DebugView as a Windows Service with AlwaysUp

How to Run DebugView 24x7 as a Windows Service with AlwaysUp

Automatically start Sysinternals DebugView when your PC boots, before anyone logs in.

DebugView is a free utility that captures diagnostic output from programs calling the OutputDebugString and DbgPrint API functions on your computer.

AlwaysUp will start DebugView whenever your PC reboots, making it possible for you to monitor Windows Services and other applications that are launched before you log in.

To run DebugView as a service with AlwaysUp:

  1. If you don't have DebugView installed, grab the zip file from Sysinternals and extract its contents to a new folder. We have placed our copy of DebugView in C:\Apps\DebugView so that directory will appear throughout this tutorial.

  2. Next, compose the command line that you will use to run DebugView.

    For your reference, the full set of command line options is revealed by running Dbgview.exe /?:

    DebugView Command Line Options

    Since we want to capture global Win32 and kernel output to a new log file every day, we have chosen these options:

    /v /l C:\DebugViewLogs\debugview-log.txt /g /n

    And before moving on, make sure that your DebugView command line runs as expected! If it doesn't work now, it won't work under AlwaysUp.

  3. Download and install AlwaysUp, if necessary.

  4. Start AlwaysUp.

  5. Select Application > Add to open the Add Application window:

    Add Application as a Service

  6. On the General tab:

    • In the Application field, enter the full path to the DebugView executable, Dbgview.exe. Look for it where you expanded the zip file you downloaded from Microsoft.

      We have used C:\Apps\DebugView\Dbgview.exe (since we expanded the zip file to C:\Apps\DebugView\ on our Windows Server 2016 system).

    • In the Arguments field, enter the command line parameters you will use to launch DebugView (see step 2).

    • In the Name field, enter the name that you will call this application in AlwaysUp. We have stuck with the default of Dbgview but you can specify another name if you like.

    DebugView Windows Service: General Tab

  7. Click over to the Logon tab. Enter the user name and password of the Windows account where you run DebugView and have accepted the Sysinternals EULA.

    If you don't specify an account here, DebugView will run in the system account (where the EULA has not been accepted) and it may get stuck showing the EULA popup window in the background.

    DebugView Windows Service: Logon Tab

  8. Click the Save >> button. In a couple of seconds, an application called Dbgview will appear in the AlwaysUp window. It is not yet running though (the state column will show Stopped).

    DebugView Windows Service: Created

  9. To start DebugView from AlwaysUp, choose Application > Start "Dbgview". The state will transition to Running and DebugView will start working in the background.

    DebugView Windows Service: Running

    And now would be a great time to open your log file and confirm that debug statements are being captured:

    DebugView Windows Service: Log File

  10. That's it! Next time your computer boots, DebugView will start up immediately, before anyone logs on. We encourage you to edit DebugView in AlwaysUp and check out the many other settings that may be appropriate for your environment. Send email reports, boost priority, restart regularly, and much more.



DebugView not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a Windows Service.

  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and DebugView. The AlwaysUp Event Log Messages page explains the more obscure messages.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.5 New!

8.0 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!