hidden hit counter
Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to view messages from DEBUGP ?

 
   Soft32 Home -> Windows -> Device Driver RSS
Next:  backup files then move to new computer  
Author Message
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 1) Posted: Sat Aug 08, 2009 1:20 pm
Post subject: How to view messages from DEBUGP ?
Archived from groups: microsoft>public>development>device>drivers, others (more info?)

Hello,

Driver source code is filled with lines like:

DEBUGP(MP_TRACE, ("<-- NICCopyPacket\n"));

I want to "debug the driver" and see these messages... and add some of my
own...

How can I see these messages ?

Bye,
Skybuck.
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 2) Posted: Sat Aug 08, 2009 1:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am guessing the operating system would need to be put into "debug" mode.

And connect with WinDbg ?

Is it possible to use VMWare to debug one on machine.

For example:

1. I debug from/on Windows XP x64 Pro

2. To Windows XP x86 in a virtual machine ?!?

Windows XP x86 would be put in debug mode.

Windows XP x64 would remain normal operation.

Last question:

Can I use netvmini.sys on Windows 7 ?

If not I will have to install windows xp 32 in a vm Wink

Bye,
Skybuck.

"Skybuck Flying" <BloodyShame.DeleteThis@hotmail.com> wrote in message
news:3cfd1$4a7db6ae$d53372a9$30302@cache2.tilbu1.nb.home.nl...
> Hello,
>
> Driver source code is filled with lines like:
>
> DEBUGP(MP_TRACE, ("<-- NICCopyPacket\n"));
>
> I want to "debug the driver" and see these messages... and add some of my
> own...
>
> How can I see these messages ?
>
> Bye,
> Skybuck.
>
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 3) Posted: Sat Aug 08, 2009 1:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I also have a lan machine available with winxp 32... that might be
fastest... but using two computers kinda sux... so...

Bye,
Skybuck.

"Skybuck Flying" <BloodyShame.TakeThisOut@hotmail.com> wrote in message
news:be195$4a7db787$d53372a9$31715@cache2.tilbu1.nb.home.nl...
>I am guessing the operating system would need to be put into "debug" mode.
>
> And connect with WinDbg ?
>
> Is it possible to use VMWare to debug one on machine.
>
> For example:
>
> 1. I debug from/on Windows XP x64 Pro
>
> 2. To Windows XP x86 in a virtual machine ?!?
>
> Windows XP x86 would be put in debug mode.
>
> Windows XP x64 would remain normal operation.
>
> Last question:
>
> Can I use netvmini.sys on Windows 7 ?
>
> If not I will have to install windows xp 32 in a vm Wink
>
> Bye,
> Skybuck.
>
> "Skybuck Flying" <BloodyShame.TakeThisOut@hotmail.com> wrote in message
> news:3cfd1$4a7db6ae$d53372a9$30302@cache2.tilbu1.nb.home.nl...
>> Hello,
>>
>> Driver source code is filled with lines like:
>>
>> DEBUGP(MP_TRACE, ("<-- NICCopyPacket\n"));
>>
>> I want to "debug the driver" and see these messages... and add some of my
>> own...
>>
>> How can I see these messages ?
>>
>> Bye,
>> Skybuck.
>>
>
>
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 4) Posted: Sat Aug 08, 2009 1:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok,

This indeed seems to have something to do with "kernel debugging"

http://msdn.microsoft.com/en-us/library/ms792790.aspx

Bye,
Skybuck.
Back to top
Login to vote
Pavel A.

External


Since: Nov 29, 2008
Posts: 5



(Msg. 5) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Skybuck Flying" <BloodyShame.DeleteThis@hotmail.com> wrote in message
news:be195$4a7db787$d53372a9$31715@cache2.tilbu1.nb.home.nl...
> I am guessing the operating system would need to be put into "debug" mode.
>
> And connect with WinDbg ?

Yes, exacty.

> Is it possible to use VMWare to debug one on machine.
>
> For example:
>
> 1. I debug from/on Windows XP x64 Pro
>
> 2. To Windows XP x86 in a virtual machine ?!?
>
> Windows XP x86 would be put in debug mode.
>
> Windows XP x64 would remain normal operation.

Yes. See the windbg help file for instructions.

> Last question:
>
> Can I use netvmini.sys on Windows 7 ?

Yes.

> If not I will have to install windows xp 32 in a vm Wink

The good Microsoft provides us a ready WinXP VM:
http://www.microsoft.com/windows/virtual-pc/download.aspx

No, having two machines doesn't sux. Debugging on your development machine
sux.

Good luck.
--pa
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 6) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hmm,

I am not gonna use my LAN machine... it's my backup computer... I don't
wanna mess with it.

So for now that leaves a leaked version of Windows 7 Wink Smile in VMware.

Will be interesting to see if this netvmini install in W7 Wink

So gonna try that first otherwise I will have to install XP32 in vmware.

^ Boring and also costs more diskspace but ok.

I could maybe even install both: xp32 and xp64 Wink

Or maybe I just go with xp64 Smile LOL.

Don't know yet.

xp64 will probably be much faster to install <- less service packs and bug
fixes ?! Wink

Bye,
Skybuck.
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 7) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Oh lucky me... I already installed a Windows 7 RTM in VMware lol.

Now I could even test the chkdsk bug but not gonna do that yet Smile LOL.

Don't wanna screw/crash it already ! Wink

So gonna try netvmini in windows 7 rtm Wink

Bye,
Skybuck.
Back to top
Login to vote
Maxim S. Shatskih

External


Since: Aug 08, 2009
Posts: 3



(Msg. 8) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> fastest... but using two computers kinda sux... so...

Virtual machines rulez

Smile

--
Maxim S. Shatskih
Windows DDK MVP
maxim.DeleteThis@storagecraft.com
http://www.storagecraft.com
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 9) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am talking about WDK 7.

It has a nice ring to it except:

"Windows XP x64 is not a supported installation platform for the WDK."

Razz**************************** PPPP Sad Wink

Bye,
Skybuck.
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 10) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Also I just updated to IE8.

There FTM (file transfer manager doesn't seem to work in IE8 ?Wink)

Fortunately the ISO is < 1 GB so I can simply download via TCP Wink Smile

25 minutes remaining not to bad.

Bye,
Skybuck.
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 11) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Seems like an excellent tutorial for debugging windows via vmware:

http://silverstr.ufies.org/lotr0/windbg-vmware.html

My latest vm workstation has a little bit different menu's.

I just need to do: "add hardware" to virtual machine and the rest is more or
less the same.

So far so good... so I am gonna try this out with Windows 7 RTM x64 ! HA
It's brand new ! HAHAHA.

Just downloaded latest WinDBG as well...

And latest WDK 7 in the pipeline too Wink Smile

Me gonna have some fun with this ! =D

Bye,
Skybuck =D
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 12) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I wonder if WDK 7 would install on Windows 7 x64 ?

I also have Windows 7 x86 on vmware... maybe I could install WDK there...
but then there wouldn't be much space left... it probably has not much space
to start with so that probably not gonna work... having a build environment
inside a virtual machine ? hmm never tried that...

Could be nice... keeps my system clean.. but then again... hmm I don't
know... can't have it on my x64 probably.. that's for sure...

Might have to install it on the backup computer... that's acceptable... but
then for now I would have to work with two computers and transfer files back
and forth to get the latest source code for the netvmini.

It will be interesting to see if the latest source builds on x64 as well...
I am also gonna do a compare to see if anything changed.

Bye,
Skybuck.
Back to top
Login to vote
Maxim S. Shatskih

External


Since: Aug 08, 2009
Posts: 3



(Msg. 13) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> There FTM (file transfer manager doesn't seem to work in IE8 ?Wink)

Works fine for me, just say Yes to all ActiveX warnings.

--
Maxim S. Shatskih
Windows DDK MVP
maxim.TakeThisOut@storagecraft.com
http://www.storagecraft.com
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 14) Posted: Sat Aug 08, 2009 3:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I think I did... the ftm didn't start... well whatever I have it now and
it's almost done installing on XP 32 Wink

Bye,
Skybuck =D

"Maxim S. Shatskih" <maxim.RemoveThis@storagecraft.com.no.spam> wrote in message
news:eOBMfiFGKHA.3392@TK2MSFTNGP02.phx.gbl...
> There FTM (file transfer manager doesn't seem to work in IE8 ?Wink)

Works fine for me, just say Yes to all ActiveX warnings.



--
Maxim S. Shatskih
Windows DDK MVP
maxim.RemoveThis@storagecraft.com
http://www.storagecraft.com
Back to top
Login to vote
Skybuck Flying

External


Since: Dec 16, 2008
Posts: 26



(Msg. 15) Posted: Sat Aug 08, 2009 5:20 pm
Post subject: Re: How to view messages from DEBUGP ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok,

There seem to be some differences in the source files.

Here and there some loops added... mostly weird "do while false" loops.

Example:

< }while(bFalse);
---
> }while(FALSE);

Here the boolean was changed from "false constant" to "false variable".

I am not exactly sure why... it might have to do with "compiler
optimizations" taking out the while loop.

Maybe the while loop is needed for some reason...

Here and there there seem to be some more important loops added... actually
one or so ?

Ok now I go try and build it in "checked mode" on the xp 32 computer then
move it to my xp 64 computer...

then install it on windows 7 x64... test it... try to interface with it with
my programs...

If still no luck then I can go and debug it and modify it and examine it etc
Smile

My expectation is that it will behave the same and still not work.

The example still passes nil parameters which is kinda dumb... because this
doesn't actually test any "data transfer".

Bye,
Skybuck.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to find out how much Power (electric current) Device c.. - Hi, please can someone have a look at this question:..

enable VGA monitor in Windows XP - I disbled the VGA and now the monitor does not work the XP logo shows up on reboot but then the screen goes black, the...

newbie's question - C:\test>build -WXP XmlLog::File::CopyXslFile(): Unable to copy the XML Style Sheet. C:\WinDDK\600 bin\x86\build.xsl ...

NDAS Scsi Controller driver problem, leads to blue screen... - Up until recently, my pc (PC1) accessed my network drive correctly along with 2 other pc's on my home network... Driv...

Compability issues - Hello, I always have to suppress the warning C2220 no 'object' file generated. I wonder if this is a compability issue...

DVD Writer Issue - Guys Sorry if this is the wrong NG I'd appreciate a bit of help please. -Using XP SP2 fully hotfixed and SP'ed -Unti...
       Soft32 Home -> Windows -> Device Driver All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]