Re: Unable to DEbug the Driver in the user mode



Hi Vladimir,

Thanks for your help, I have used DebugBreak in place of DbgBreak().

I am still not able to get any success. I get the information that " no
source code exist at this location.".

I am going to describe you a bit about my project it may help you to
resolve my problem

1. I have Printer driver code which uses uniDrv & OEMUI code.
2. THERE IS A PORT MONITER(WN32 APPLICATION) WHICH RECIEVE & SEND IT A

3. ANOTHER INTEROP dLL WHICH TRANSFER THE BYTE ARRAY TO .nET
APPLICATION & WHEN THIS APPLICATION CLOSES DOWN IT CLEAN OFF THE PRINT
JOB FROM SPOOLER.

4. there is no debug information is popping up for these win32 dlls
too.

I am getting some information about the debug content(in debug window)
but I am not able to debug source code line by line.

can I get some thing through which I can get the better understanding
of Printer driver work flow.

it may help me.

Thanks,
Sahaj

Sahaj wrote:
Hi Vladimir,

Thanks for your help, I have used DebugBreak in place of DbgBreak().

I am still not able to get any success. I get the information that " no
source code exist at this location.".

I am going to describe you a bit about my project it may help you to
resolve my problem

1. I have Printer driver code which uses uniDrv & OEMUI code.
2. THERE IS A PORT MONITER(WN32 APPLICATION) WHICH RECIEVE & SEND IT A

3. ANOTHER INTEROP dLL WHICH TRANSFER THE BYTE ARRAY TO .nET
APPLICATION & WHEN THIS APPLICATION CLOSES DOWN IT CLEAN OFF THE PRINT
JOB FROM SPOOLER.

4. there is no debug information is popping up for these win32 dlls
too.

I am getting some information about the debug content(in debug window)
but I am not able to debug source code line by line.


can I get some thing through which I can get the better understanding
of Printer driver work flow.

it may help me.



Thanks,
Sahaj


Vladimir Zinin wrote:
Insert DbgBreak() into the driver's code. After the break point occurred
the system itself will ask to attach a debugger.

--
Best regards,
Vladimir Zinin
mailto:vzinin@xxxxxxxxx


Sahaj wrote:
I have attached the My Visual studio 2003 with Notepad.exe.

But the when I set the break point it gives me information "no
executable loaded at this location".

Thanks,
Sahaj

.



Relevant Pages

  • Re: Unable to DEbug the Driver in the user mode
    ... I have Printer driver code which uses uniDrv & OEMUI code. ... ANOTHER INTEROP dLL WHICH TRANSFER THE BYTE ARRAY TO .nET ... I am getting some information about the debug content ... but I am not able to debug source code line by line. ...
    (microsoft.public.development.device.drivers)
  • Re: Debug and break point problem - There is no source code available
    ... manually recreate all the classes and then paste the code in... ... I, too, moved the source code from one ... > I started a new project and confirmed that I can debug it. ... >> I had to manually change the reference in the Solution properties. ...
    (microsoft.public.dotnet.general)
  • Re: debugging in release mode
    ... The idea that source code was in the .exe was my misconception. ... The alert is a callback. ... SInce I now know that it is not giving away any secrets to deliver debug ... and then turn off optimizations and turn on generation of debug ...
    (microsoft.public.vc.mfc)
  • Re: Seg fault even though address space is accessible
    ... There's a guy around here somewhere who can debug your problem (no ... matter what it is) using only the debugger. ... debugger and not seeing the source code. ... I did extend the position held by one of the trolls that the debugger ...
    (comp.lang.c)
  • Re: Big problems with glibc - how to debug?
    ... >> kernel services back ported to the Red Hat 2.4 kernels. ... Hat installs. ... this that I can debug with source code;-) ... > have a one-line change in source code which triggers the problem. ...
    (comp.os.linux.development.apps)

Loading