Setting up the Debugger.

G

Guest

First I am new to Visual Studio.
And I do finally have this working.

But I would like to understand it a little better.

I have written a DLL, that runs under an EXE via the interface.

I have been having a devil of a time setting up the debugger,

first not built with debugging - it was !!!
Then something about not having the symbol file.

Here's where the ?s are
When I compile it I have the DLL AND pdb in TWO folders

obj\Debug
and
bin\debug

the obj has something about "ResolveAssemblyReference.cache"

Why in 2 places ???

Which should I use ??

Is there any good reference, or book, on Visual Studio that you folks
recommend.

I've used VB for years, and programmed for decades.

OO is a little fuzzy to, I have a handle on it. But the mechanics sometimes
elude me.
 
D

Dave Sexton

Hi,

You shouldn't have to worry about the contents of either the obj or bin
folders if you want to debug. "obj", I believe, is used by Intellisense and
"bin" is the build target directory. Debug is the default folder for when
you build with the "Debug" solution configuration, and the Release folder is
the default folder for the "Release" configuration.

What you need to do is:

1. set your solution configuration to "Debug".

2. on the build menu select "Clean Solution" (just in case you've modified
some things while playing around)

3. make sure that the project that you want to debug is loaded (appears in
the Solution Explorer window).

4. build and run the solution by pressing F5 or select Build [your project]
from the Build menu

5. fix any errors that prevent you from building

At this point, whether you had no errors or have completed step 5, Visual
Studio should have started and attached to your process automatically.

Note: You should be using a project reference if your library and executable
projects are in the same solution, which I assume is the case.

In case that doesn't work for you, what version of Visual Studio are you
running?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top