OSRLogo
OSRLogoOSRLogoOSRLogo x Subscribe to The NT Insider
OSRLogo
x

Everything Windows Driver Development

x
x
x
GoToHomePage xLoginx
 
 

    Mon, 23 Oct 2017     115118 members

   Login
   Join


 
 
Contents
  Online Dump Analyzer
OSR Dev Blog
The NT Insider
Downloads
ListServer / Forum
Driver Jobs
  Express Links
  · The NT Insider Digital Edition - May-June 2016 Now Available!
  · Windows 8.1 Update: VS Express Now Supported
  · HCK Client install on Windows N versions
  · There's a WDFSTRING?
  · When CAN You Call WdfIoQueueP...ously

Debugging WDK Build Environments

If you've had the type of trouble that we've had here at OSR in the past month getting things to build in the RC1 and later WDK build environments, you've probably noticed that lots of things about the build environment have changed.

One of the more frustrating changes is the fact the BUILD has added the "/nologo" switch to the compilation command for x86. This means that the complete list of parameters passed to build no longer are displayed (nor do they appear in the build log file).  I'm thinkin' this makes it sorta difficult to debug build environment issues, you know?

To the rescue comes DDK MVP Don Burn, who recently posted the following nugget on one of the newsgroups.

Don wrote:

Use the following in the build window before invoking build:

    set BUILD_DEBUG=1

The rsp file will be in the object directory.

Knowing this sure would have saved us a bunch of time in the past month.  Hopefully, it'll save you some time in the future.

One of our friends in Redmond -- a build guru and all around good guy -- helped clarify the cause of this problem for us.  By the way, he noted that while setting BUILD_DEBUG=1 is fine for one-off debugging, you shouldn't leave it on in production environments.

Thanks to Don for passing along this tip, and to friend in Redmond for shedding some light on the cause of the situation.

 

Related Articles
WINVER Incorrectly Defined in XP/.NET Beta DDK's Win2K Build Environment
Advantage: Driver Writer -- New Functions in the Windows XP DDK
XP DDK Resets PATH Environment Variable
New DDK Package -- The DDK Suite (Update)
Need the XP DDK FAST?
Must Use New DDK Compiler
Windows XP® DDK
Interview: All About the DDK
Guest Article: Simplifying Development with DDK Macros
The DDK Is Dead -- Long Live the LDK!

User Comments
Rate this article and give us feedback. Do you find anything missing? Share your opinion with the community!
Post Your Comment

Post Your Comments.
Print this article.
Email this article.

Writing WDF Drivers I: Core Concepts
LAB

Nashua (Amherst), NH
15-19 May 2017

Writing WDF Drivers II: Advanced Implementation Techniques
LAB

Nashua (Amherst), NH
23-26 May 2017

Kernel Debugging and Crash Analysis
LAB

Dulles (Sterling), VA
26-30 Jun 2017

Windows Internals and Software Driver Development
LAB

Nashua (Amherst), NH
24-28 Jul 2017

 
 
 
 
x
LetUsHelp
 

Need to develop a Windows file system solution?

We've got a kit for that.

Need Windows internals or kernel driver expertise?

Bring us your most challenging project - we can help!

System hangs/crashes?

We've got a special diagnostic team that's standing by.

Visit the OSR Corporate Web site for more information about how OSR can help!

 
bottom nav links