Advertisement

Breakpoints disabled in static lib?

Started by March 27, 2001 05:51 AM
3 comments, last by gimp 23 years, 10 months ago
I can''t seem to set breakpoints in a static library, though I can step my way in. How do i get around this? Many thanks Chris
Chris Brodie
Under the static libs project, under debug, under ''executable for this session'' browse to an .exe that uses that lib

note, theat breakpoints inside the lib are now set, but ones inside the program are not.

Run the program from the IDE, with the lib project active

Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
Kind thanks... flying blind is a frustrating way to code...
Chris Brodie
Oddly, I have never had to do this. I have a project that staticly links 3 libraries to the executable. I have found that if I am able to step into a library, I am able to set breakpoints. I''ve never had to change "executable for this library" or switch active projects--I always run the .exe.

You do have to be using the exact source files that were used to generate the library which was linked with the executable. Let us know if you run into any more problems.
Yeah I noticed that too - if you can step into it & set a break point, why can''t you just set a break point?


I''ve debgged C++ dll''s being calld by VB & Delhpi host apps... where stepping into the dll isn''t possible (I don''t think).

Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement