Visual Studio debugger will not step into code of a separate project that builds to a dll (within the same solution)

jbl 20 Reputation points
2024-05-09T23:39:57.78+00:00

I have two projects in one solution. One compiles into an exe which depends on the other project that compiles into a dll. When I try to step into a function from the dll that is called within the exe code, it skips over it. My pdb file for the dll is copied over to the same directory as my exe and so is the dll. When I go into the modules window of the debugger, it says the dll module is loaded as well as its symbols. I have tried to disable debugging "Just my code" but even this hasn't worked. When I try to set a breakpoint in the function, it says "no symbols have been loaded for this document" and links me to this article:I have two projects in one solution. One compiles into an exe which depends on the other project that compiles into a dll. When I try to step into a function from the dll that is called within the exe code, it skips over it. My pdb file for the dll is copied over to the same directory as my exe and so is the dll. When I go into the modules window of the debugger, it says the dll module is loaded as well as its symbols. I have tried to disable debugging "Just my code" but even this hasn't worked. When I try to set a breakpoint in the function, it says "no symbols have been loaded for this document" and links me to this article. I went to the section for when both the modules and symbols are loaded and tried to resolve all 3 of their suggested problems, and it still didn't work.

Any idea what might be going on?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,553 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
948 questions
{count} votes

Accepted answer
  1. RLWA32 40,861 Reputation points
    2024-05-11T09:48:15.93+00:00

    I can reproduce the issue if the DLL project properties are set as shown below -

    Debug

    TestLib

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful