Re: How to view debug information?

From: R.Fichter (Ft.nospam_at_emtrion.de)
Date: 04/30/04


Date: Fri, 30 Apr 2004 08:29:10 +0200

Make sure, that the define SHIP_BUILD is not set otherwise for the compiler.
To check if this define is set you should look into the build.log file and
check if in the command line of the compiler is a parameter which look like
"-DSHIP_BUILD=1". If you this parameter find the command line of the
compiler, the compiler won't place code for the RETAILMSG and DEBUGMSG into
the dll. The compiler define can set in the source file or the source.cmn
file, which is located in the $(_TARGETPLATROOT) directory.
To find out if the compiler make code for the RETAILMSG and DEBUGMSG macros
you can also add the WINCECOD=1 statement to the source file of the driver.
After you have recompile the driver the compiler have stored .cod file under
the directory <driver>\obj\<cpu>\debug. In this file you can look if the
compiler has make instructions for the RETAILMSG resp. DEBUGMSG statements
in your code.

Regards Ruediger

"visi" <zqvisi@hotmail.com> schrieb im Newsbeitrag
news:OGmKwDlLEHA.3892@TK2MSFTNGP11.phx.gbl...
> My "Build Options" tab in the platform settings is following:
>
> and there is no "Enable Ship Build" option .I dont set the environment
> variable SHIP_BUILD to 1 .
> In the kernel there are debug information output,but in driver model the
> message is always not output.
>
>
>
> "R.Fichter" <Ft.nospam@emtrion.de> wrote in message
> news:#xB9MibLEHA.340@TK2MSFTNGP11.phx.gbl...
> > Check if you have set the environment variable SHIP_BUILD to 1 (or
> selected
> > the item "Enable Ship Build" on the "Build Options" tab in the platform
> > settings). If this environment variable set the macros RETAILMSG and
> > DEBUGMSG are redefined in a header file. In this case no messages are
> output
> > to the debug interface. If the environment variable SHIP_BUILD is not
set,
> > the funktion NKDbgPrintfW in the kernel is called to output the message.
> >
> > Regards Ruediger
> >
> > "visi" <zqvisi@hotmail.com> schrieb im Newsbeitrag
> > news:%23vzNiZQLEHA.556@tk2msftngp13.phx.gbl...
> > > In retail or debug ,
> > > RETAILMSG(1,(TEXT("PDD_AudioInitialize1\r\n")));
> > > DEBUGMSG(1,(TEXT("PDD_AudioInitialize2\r\n")));
> > > there isnt debug messages occuring.
> > >
> > > I have no idea about it!If I need to do something?
> > >
> > > Thanks!
> > >
> > >
> > >
> > >
> >
> >
>
>
>



Relevant Pages

  • lucent modem driver compilation failure
    ... I'm trying to compile an installable module for my internal modem ... and driver work as they were fully functional under RH7.3. ... 00:07.2 USB Controller: VIA Technologies, ... If not present use the ltmodem-8.22a5.tar.gz compiler kit. ...
    (linux.redhat.misc)
  • lucent modem driver compilation failure
    ... I'm trying to compile an installable module for my internal modem ... and driver work as they were fully functional under RH7.3. ... 00:07.2 USB Controller: VIA Technologies, ... If not present use the ltmodem-8.22a5.tar.gz compiler kit. ...
    (comp.os.linux.hardware)
  • Re: Microfocus Netexpress question : COBSQL vs openESQL
    ... >couldnt connect with the oracle database specified in the program. ... It may be missing an ODBC driver and/or data source. ... You also need an entry for the data source in tnsnames.ora. ... precompiler directives to the precompiler and compiler directives to ...
    (comp.lang.cobol)
  • Re: Build device driver using Microsoft Visual C++ 2005
    ... If its true that SoftIce has been flushed then driver development just got ... since SoftIce has been flushed. ... anything other than the DDK compiler to build a driver. ... on your driver and then come back and talk about PDB files. ...
    (microsoft.public.development.device.drivers)
  • Re: how many win64?
    ... AMD64 compiler won't do that. ... Calvin Guan, Windows DDK MVP ... Software Engineer, NT Driver ... > difference, once it works on one architecture, it should work on the next. ...
    (microsoft.public.development.device.drivers)