Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows Driver Device
Hello
 
I'm using VS 2012 and VM on same machine.
Host Win7_x64 and VM on same machine is again Win7_x64
Debug using VS 2012, i.e using VS and pipe serial connection on VM.
 
Everything is proper. I'm able to load driver on VM using VS's in built process to attach.
I've build, link and install KmdfSmall driver given on microsoft website onto VM
I've build, link and install another very small test driver onto VM.
 
Yes, all drivers are showing very properly into device manager of VM.
 
When ever I'm pressing break all onto host in debug mode into VS; all break points are also becoming read on .c and .cpp files.
 
But the question comes here when I pressed f10 for checking code flow "No Source Code Available " window is getting open.
 
Actually I'm not very much familiar that how and where it should go but as in normal C program case in VS during debug the pointer go ahead in source file so here in window device driver where it should go.
 
thus how to debug driver here and what should I check to understand that driver is installed properly and working fine.
 
Attaching few images to get better idea. It will let you know that how much I reached.
 
Here I'm trying to debug NOTHING driver of OSR online
http://www.osronline.com/article.cfm?article=390
 
Kindly guide me to the best direction of what to debug and how in this windows device driver.
 
One image is of host having VS and another image is of VM where driver has been installed.
Please help me to debug the driver and understand its working.
Posted 13-Jun-13 6:17am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hello,
 
On target, disable the driver meanwhile keep the VS into running debug mode onto host.
Then restart the target, enable the driver as soon as enable the driver onto target
it will jump to VS running into debug mode onto host at the already settled breakpoint. then after just press F5 and go ahead.
 
regards
matt
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 16 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100