Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
 How to: Debug from a DLL Project

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio Debugger
How to: Debug from a DLL Project

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic appliesTopic appliesTopic appliesTopic does not apply

Standard

Topic applies

Topic applies

Topic applies

Topic does not apply

Pro and Team

Topic applies

Topic applies

Topic applies

Topic does not apply

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

To start debugging from the DLL project instead of the calling application, you must enter information in the <Project> Property Pages dialog box or window to indicate where the DLL project can find the calling application. The C++ Property Pages differ in layout and content from the C# and Visual Basic Property Pages. Refer to the procedure that corresponds to your project's language.

If a managed DLL is called by native code and you want to debug both, both managed and native debuggers must be enabled. You can set this in the <Project> Property Pages dialog box or window. For more information, see How to: Debug in Mixed Mode.

To specify the calling application in a C++ project

  1. In Solution Explorer, select the DLL project.

  2. On the View menu, choose Property Pages.

  3. In the Project Property Pages window, in the Configuration drop-down list, choose Debug.

  4. Open the Configuration Properties folder, and select the Debugging category.

  5. In the Debugger to launch list, choose Local Windows Debugger or Remote Windows Debugger.

  6. In the Command or Remote Command box, click the drop-down arrow, and select Browse from the list to locate the application. Alternatively, type the path and name of the application.

  7. Type any necessary program arguments in the Command Arguments box.

To specify the calling application in a C# or Visual Basic project

  1. In Solution Explorer, select the DLL project.

  2. On the View menu, choose Property Pages.

  3. In the Project Property Pages window, in the Configuration drop-down list, choose Debug.

  4. Click the Debug tab.

  5. You can start the application by either doing the following:

    1. Set the Start Action to Start external program.

    2. In the Start external program box, click the ellipsis button to browse for the application.

    3. Enter any necessary program arguments in the Command Line Arguments box.

  6. Or, you can invoke an application at a URL. (You might want to do this if you are debugging a managed DLL used by a local ASP.NET application.)

    1. Under Start Action, select the Start browser in URL: radio button.

    2. In the adjoining text box, type the URL.

To start debugging from the DLL project

  1. In Solution Explorer, select the DLL project.

  2. Set breakpoints as needed.

  3. Enter the name and location of the calling application in the Project Property Pages dialog box or window. If the application is a console application, fill in the command line arguments, if it is necessary.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Debug from a DLL Project in Express 2008 .net 3.5      Jbenisek   |   Edit   |   Show History
This option is not included in Express 2008 c# however this document says it should be there. Please leave a comment above to get this fixed.
Tags What's this?: .net (x) 2008 (x) 3.5 (x) dll (x) express (x) external (x) Add a tag
Flag as ContentBug
fix the MSVCP80D.dll by reinstalling it      hockey0504   |   Edit   |   Show History
fix the MSVCP80D.dll by reinstalling it
Tags What's this?: Add a tag
Flag as ContentBug
About fix      catherine01248 ... Thomas Lee   |   Edit   |   Show History

reinstalling dll? how to?

[tfl - 06 07 09] Hi - and thanks for your post. You should post questions like this to the MSDN Forums at http://forums.microsoft.com/msdn or the MSDN Newsgroups at

http://www.microsoft.com/communities/newsgroups/en-us/ . You are much more likely get a quicker response using the forums than through the Community Content. For specific help about:
Visual Studio :
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.vstudio%2C &
SQL Server :
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C &
.NET Framework :
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.dotnet.framework

Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker