How to debug in windows ??!!



Hi,

We have a project which compiles well on Visual Studio for Windows.
It uses a library which we have not been able to build on Visual
Studio as it uses a very complex makefile with lex/yacc files etc (I
am not sure about the reason, just that several attempts to build it
on VS have failed.)
So we have made some changes in the library to get the VS cl compiler
in the makefile and this builds the library successfully.
Now, there is some error in this library which I need to debug.
Whole of the other project is built in non-debug mode.
I tried the following options in the makefile to build it in debug
mode (using cl compiler) :
DLL_OPTION = /out:../$(LIBDIR)/$LIB.dll /Zi /Yd /Od /MDd /DLL /
LD /implib:$(LIBFILE)
CFLAGS += /YX /Zi /Yd /Od /MDd

Then I did the following:

1. Copied the dynamic lib made above to the place where the final
executable expected them.
2. Launched the final executable.
3. From Visual Studio, did Tools->Debug Processes
4. Attached to the running executable
1. Hit the button Break in the window for attach to process.
5. It gave an error that no source code was available at the
current location.

Does anybody know how this can be resolved ?
.


Loading