Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. debug .lib attaching to process?

debug .lib attaching to process?

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mav octaval
    wrote on last edited by
    #1

    I need to debug a function defined in a statically linked library attaching to a process compiled with that library. I have two .bsc's, one for the library and one for the .exe. I have tried changing the name of the .lib bsc to the exe .bsc, but doing this way I can't set breakpoints in the function of the library that I need to debug.

    M 1 Reply Last reply
    0
    • M mav octaval

      I need to debug a function defined in a statically linked library attaching to a process compiled with that library. I have two .bsc's, one for the library and one for the .exe. I have tried changing the name of the .lib bsc to the exe .bsc, but doing this way I can't set breakpoints in the function of the library that I need to debug.

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      .bsc doesn't have anything to do with debugging. this is the browse information for symbols which Visual studio uses for locating symbol defenitions inside the source code. To debug what u need is the .pdf file. you have to compile both the library and exe. if the pdb file time stamp is same that of lib, then you can break into the code. you can chk whther the symbol files loaded correctly by pressing ctrl + alt + u inthe debug mode. cheers...milton kb

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups