Remote debugging in Microsoft Visual Studio

I am running the microsoft Minifilter example and was able to run this locally and connect using the user client, however I want to breakpoint and debug this to see just what data is available and therefore I provisioned a test environment on a second pc. All seems to be fine they are both connected and the test machine is configured in my project settings, but when I try and debug it fails on Driver Preperation, not sure where to look for more information, the code has not been changed so I dont know why this error is occuring, can anyone give me a few pointers?

Using NET for debugging
Opened WinSock 2.0
Waiting to reconnect…
[13:56:28:202]: Remove Existing Remote Package
[13:56:28:213]: Task “Remove Existing Remote Package” completed successfully
[13:56:28:218]: Copy Driver Package
[13:56:28:264]: Task “Copy Driver Package” completed successfully
[13:56:28:283]: Driver Removal
[13:56:28:285]: Removing any existing files from test execution folder.
[13:56:28:298]: Copying required files for “Driver Removal”.

$KitRoot$\Testing\Runtimes\TAEF\te.exe “%SystemDrive%\DriverTest\Run\DriverTestTasks.dll” /select:“@Name=‘DriverTestTasks::_DriverRemoval’” /p:“InfFile=” /p:“ImportDriver=1” /p:“RemoveDriver=1” /p:“CertificateFile=minispy.cer” /p:“PackageGuid=x64” /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file=“%SystemDrive%\DriverTest\Run\Driver_Removal_00004.wtl”,writemode=append,encoding=unicode,nofscache=true,EnableLvl=“WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*” /runas:Elevated
[13:56:30:302]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[13:56:30:304]: Task “Driver Removal” completed successfully
[13:56:30:666]: Driver Preparation
[13:56:30:667]: Removing any existing files from test execution folder.
[13:56:30:682]: Copying required files for “Driver Preparation”.

$KitRoot$\Testing\Runtimes\TAEF\te.exe “%SystemDrive%\DriverTest\Run\DriverTestTasks.dll” /select:“@Name=‘DriverTestTasks::_DriverPreparation’” /p:“InfFile=” /p:“ImportDriver=1” /p:“RemoveDriver=1” /p:“CertificateFile=minispy.cer” /p:“PackageGuid=x64” /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file=“%SystemDrive%\DriverTest\Run\Driver_Preparation_00004.wtl”,writemode=append,encoding=unicode,nofscache=true,EnableLvl=“WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*” /runas:Elevated
[13:56:32:655]: Result Summary: Total=1, Passed=0, Failed=1, Blocked=0, Warned=0, Skipped=0
[13:56:32:657]: ERROR: Task “Driver Preparation” failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
[13:56:33:034]: Driver Post Install Actions
[13:56:33:035]: Removing any existing files from test execution folder.
[13:56:33:051]: Copying required files for “Driver Post Install Actions”.

$KitRoot$\Testing\Runtimes\TAEF\te.exe “%SystemDrive%\DriverTest\Run\DriverTestTasks.dll” /select:“@Name=‘DriverTestTasks::_DriverPostInstall’” /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file=“%SystemDrive%\DriverTest\Run\Driver_Post_Install_Actions_00004.wtl”,writemode=append,encoding=unicode,nofscache=true,EnableLvl=“WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*” /runas:Elevated
[13:56:35:049]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[13:56:35:051]: Task “Driver Post Install Actions” completed successfully
Driver Deployment Task Failed: Driver Preparation

I struggled with this functionality way too long. It just does not work.
The easiest way i could figure out is setting up a test virtual machine and using VirtualKD to connect WinDbg to it.
VirtualKD has a pretty good documentation, WinDbg will cost you some time to get used to it.

http://virtualkd.sysprogs.org/

I am still trying but not having much luck, the most annoying thing is it says to look at the logs in the driver test group explorer and I have ZERO idea where to find these logs, they dont appear to exist…

The stupid way I did it was to configure the machine in visual studio then manually install the driver on the machine and then finally attach to process via Windows Kernel Mode Debug.

How have you configured your test machine? Is it through pipes? Can you attach to process to the test machine?

I basically followed the instructions from Microsoft on how to provision and debug on a remote system. Right now in Visual Studio if I right click a project and deploy or debug it appears to go through the steps to connect, drops files on the remote pc and attempts to install etc. I have done a lot of googling and is it a case that this automatic remote provisioning and setup only works with windows drivers and not microfilters? For example I dont see fltmc being run remotly…