Inter-project debugging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joel Whitehouse

    #1

    Inter-project debugging

    Hello All,

    I wrote a .dll in C++, and I'm calling it's funtions from a VB.NET
    program. I have both the VB and the C++ projects in the same solution.

    When I debug, I can step through the VB.NET program, but when I get to
    the .dll function call, it just does a "Step Over" instead of stepping
    *Into* my .dll's code, even though I have the .dll project as part of
    the solution.

    How can I make the program step into my .dll's code when I'm debugging?

    Thanks!

    -Joel
  • William DePalo [MVP VC++]

    #2
    Re: Inter-project debugging

    "Joel Whitehouse" <joelwhitehouse @gmail.com> wrote in message
    news:Ovvt%23qem FHA.3316@TK2MSF TNGP14.phx.gbl. ..[color=blue]
    > I wrote a .dll in C++, and I'm calling it's funtions from a VB.NET
    > program. I have both the VB and the C++ projects in the same solution.
    >
    > When I debug, I can step through the VB.NET program, but when I get to the
    > .dll function call, it just does a "Step Over" instead of stepping *Into*
    > my .dll's code, even though I have the .dll project as part of the
    > solution.
    >
    > How can I make the program step into my .dll's code when I'm debugging?[/color]

    Highlight the VB.Net project and choose 'Properties' from the menu. Then
    click the 'Configuration Properties' folder and the 'Debugging' item below
    it. Find the checkbox labeled "Unmanaged Code Debugging" and select the
    option.

    Be warned, this option is often painfully slow.

    Regards,
    Will


    Comment

    • Joel Whitehouse

      #3
      Re: Inter-project debugging

      William DePalo [MVP VC++] wrote:[color=blue]
      > "Joel Whitehouse" <joelwhitehouse @gmail.com> wrote in message
      > news:Ovvt%23qem FHA.3316@TK2MSF TNGP14.phx.gbl. ..
      >[color=green]
      >>I wrote a .dll in C++, and I'm calling it's funtions from a VB.NET
      >>program. I have both the VB and the C++ projects in the same solution.
      >>
      >>When I debug, I can step through the VB.NET program, but when I get to the
      >>.dll function call, it just does a "Step Over" instead of stepping *Into*
      >>my .dll's code, even though I have the .dll project as part of the
      >>solution.
      >>
      >>How can I make the program step into my .dll's code when I'm debugging?[/color]
      >
      >
      > Highlight the VB.Net project and choose 'Properties' from the menu. Then
      > click the 'Configuration Properties' folder and the 'Debugging' item below
      > it. Find the checkbox labeled "Unmanaged Code Debugging" and select the
      > option.
      >
      > Be warned, this option is often painfully slow.
      >
      > Regards,
      > Will
      >
      >[/color]
      Thanks so much! This helps me to no end! If I had $50 to hand you...

      -Joel

      Comment

      Working...