Debugging issues

I have a specific application in MSVC6.0 all C code. I have this as two workspaces:

1.) The first workspace creates a static library file, * .lib, after compiling the source.

2.) The second workspace has a test application (main ()) and links the previously generated * .lib library and creates and exe.

When I try to do one action of a test application, I cannot do it. It keeps asking for the crt0.c file and even after pointing it to that file, I can't go into my main function at all, it exits without even going into my main function.

[This same setting works if I just cut out Ctrl-F5. It works fine with the correct output, so no problem executing]

But I need to debug / one step.

So I made one confirmation.

Created one new workspace in MSVC6.0 (Win32 console application without creating this library, etc. Single workspace generating exe. In this new setup I can debug the main () function.

1.) Any pointers to what is going on? Why can't I debug in my executable library setup?

2.) How can I debug this setup? Any project settings I am missing?

-AD

+1


source to share


1 answer


Under Project Settings / C ++ / General make sure debug info is enabled, e.g. install the Program Database . Under Project Settings / Link / Debug, make sure Debug and Microsoft Format is checked .



0


source







All Articles