Re: Visual Studio 2005 - Stepping into Statically link libraries
- From: John Cramer [MSFT] <JohnCramerMSFT@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 18:26:02 -0700
Yes, my previous statement was wrong. I was also able to step into LIB
functions with EVC 4.0 where the EXE and LIB were separate projects. I guess
my memory failed me and I must have been thinking about cases of trying to
step into retail LIB files that didn't contain debug information. I'm looking
into VS and WM 5.0 now.
--
John Cramer
SOFTWARE DEVELOPMENT ENGINEER, Mobile Developer eXperience Team
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Byungho Lee" wrote:
> Actually I used to step into static library on eVC 4.0.
> Library was made on a different project using eVC4.0 on the same PC.
>
>
> "John Cramer [MSFT]" <JohnCramerMSFT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
> message news:5BEF4AF5-F038-4033-859B-5F120FA4C164@xxxxxxxxxxxxxxxx
> > I'm not absolutely sure, but I don't think you can step into statically
> > linked code from LIBs. I'm pretty sure I have never been able to, on any
> > platform, ever. If you use strings.exe to extract text from binary files,
> > you
> > won't find any references to the matching PDB file, as you will with .EXE
> > and
> > .DLL files, so that means there's no way for the debugger to find the
> > symbols
> > or sources.
> >
> > Since you seem to have the sources for the LIB files, you could debug by
> > compiling and linking the sources directly with your program, then split
> > it
> > out and make LIB files after everything works.
> >
> > --
> > John Cramer
> > SOFTWARE DEVELOPMENT ENGINEER, Mobile Developer eXperience Team
> > Microsoft Corp.
> >
> >
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> >
> >
> >
> >
> > "Constantine Zervos" wrote:
> >
> >> I am unable to step into functions that are part of a statically linked
> >> library.
> >>
> >> I am using Visual Studio 2005 beta2.050215-4400 (version 8.0.50215.44)
> >> and I
> >> am building native C++ code for the Pocket PC 2003 Second edition (both
> >> Target emulator and device exhibit the same problem)
> >>
> >> My solution consists of 4 projects 3 of which are statically linked
> >> libraries and the other is the Executable. When I try to debug the
> >> solution
> >> I am able step into all functions that are part of the project where the
> >> executable is generated but I can not step into any of the functions
> >> implemented in the other 3 projects (the libs). In reality I can not
> >> step
> >> into the functions when I am steeping through displaying the C-Source
> >> code.
> >> Stepping into a function (from the lib projects) results in just stepping
> >> over it. If I change the debugger to display the assemply code and I
> >> step
> >> into such a function I am able to follow the branch into the functions.
> >> Nevertheless there is no longer C-Source code association so this is not
> >> very useful.
> >>
> >> I thought there must be something wrong with my Solution & Project
> >> configurations but I tried all that seamed relevant with no luck. I
> >> tried
> >> explicitely adding the directories of the C++ source files for my lib
> >> projects into the "Debug Source Files" configuration of the Solution.
> >> That
> >> did not help. I also tried explicitely adding the full path to the *.pdb
> >> file under the tools->Options->Debugging->Symbols but that did not help
> >> either.
> >>
> >> At this point I am left wondering whehther this is a know issue with
> >> Visual
> >> Studio 2005 & Pocket PC. In other words has anyone been able to step
> >> into
> >> functions of libraries that are statically linked into a project which
> >> targets Pocket PC 2003? If yes what do you think I should try next? It
> >> is
> >> not obvious to me what I could be doing wrong.
> >>
> >> TIA,
> >>
> >> CZ
> >>
> >>
> >>
>
>
>
.
- References:
- Visual Studio 2005 - Stepping into Statically link libraries
- From: Constantine Zervos
- Re: Visual Studio 2005 - Stepping into Statically link libraries
- From: Byungho Lee
- Visual Studio 2005 - Stepping into Statically link libraries
- Prev by Date: Re: Final Word.
- Next by Date: Ambitious project - comments?
- Previous by thread: Re: Visual Studio 2005 - Stepping into Statically link libraries
- Next by thread: Re: Visual Studio 2005 - Stepping into Statically link libraries
- Index(es):
Relevant Pages
|