Just hit F5. You can run Windows services like regular applications.
Since we have no other command line arguments, we simply use the presence of any command line argument as a signal to run as a regular Windows application. You can also require a specific command line argument (i.e. / debug).
If sArgs IsNot Nothing AndAlso sArgs.Length > 0 Then
' If there are command-line args then run in non-service mode
Dim svc As ServiceMain = New ServiceMain(True)
svc.OnStart(Nothing)
System.Windows.Forms.Application.Run()
svc.OnStop()
Else
' If no command-line args then run normally
Dim ServicesToRun() As System.ServiceProcess.ServiceBase
ServicesToRun = New System.ServiceProcess.ServiceBase() {New ServiceMain(False)}
System.ServiceProcess.ServiceBase.Run(ServicesToRun)
End If