VS2012 debugging problem

Hi again! :slight_smile:

Some weeks ago I implemented a small driver and used the new VS2012 debugging feature.
In between I worked on another “old” driver and now came back to my VS2012 project.

Unfortunately I cannot debug the driver anymore and get the following error msg in
the debug output from VS2012:

Breakpoint 7’s offset expression evaluation failed.
Check for invalid symbols or bad syntax.

Does anybody know what I have to change to make to VS2012 driver project
work again?

Thanks!

do bl find what 7 the breakpoint is
and do bd 7 or bc 7

you problably setup a bu breakpoint on source line
and probably recompiled it and the line probably shifted to some where
else where you originally set your breakpoint

this is the most the cause of that msg

bd = breakpoint disable 7 = bp no
bc = breakpoint clear

On 10/15/12, xxxxx@frank-wolf.org wrote:
> Hi again! :slight_smile:
>
> Some weeks ago I implemented a small driver and used the new VS2012
> debugging feature.
> In between I worked on another “old” driver and now came back to my VS2012
> project.
>
> Unfortunately I cannot debug the driver anymore and get the following error
> msg in
> the debug output from VS2012:
>
> Breakpoint 7’s offset expression evaluation failed.
> Check for invalid symbols or bad syntax.
>
> Does anybody know what I have to change to make to VS2012 driver project
> work again?
>
> Thanks!
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Thanks… this helped! Two more questions I’ve got:

  1. In my VS2012 generated driver project I cannot select a source file and compile it via Ctrl+F7.
    The context menu entry is always greyed out. What am I doing wrong?
    (Of course I can compile the whole project… but not a single file).

  2. How can I get my breakpoints transferred to the target machine properly? Right now I’ve entered a
    “DbgBreakPointWithStatus(123);” call in my DriverEntry to get my Breakpoints enabled. That means my
    BPs are enabled after going on from that breakpoint but not before. Is there a better way?

Thanks!