Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8592653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:48:08+00:00 2026-06-11T23:48:08+00:00

This is a question towards programmers who have experience with using Visual Studio 2010

  • 0

This is a question towards programmers who have experience with using Visual Studio 2010 for debugging external applications.

Currently, I’m developping an add-on for a program made by people I work for. In order to make this add-on work with the external program, I have to place the .dll file in a certain folder, specified by the external program. I have my build settings configurated so the .dll file is copied automatically. I also copy the .pdb file to enable debugging options.

Since this add-on is nothing but a class library, I can’t debug it like I normally would. I also don’t have the source code for the external application. How should I debug this class library properly?

This is what I tried:

1. Attach to Process
See Attach to a Running Process. This seems to work fine, except it takes a few seconds to set up. That’s a problem, because most of the exceptions/breakpoints occur at the very first seconds of the start of the external program. It also becomes annoying to manually attach Visual Studio to a process, because I debug this class library a lot, thus taking a lot of time after a while.

2. Debugger.Launch()
Currently I use Debugger.Launch() to attach Visual Studio to the external program. This will display a Just In Time prompt, asking me which instance of Visual Studio I would like to use. I find this to be much slower than “Attach to Process”, but this way I am sure that the debugger is attached before any breakpoints can occur. Placing this between #if DEBUG and #end if makes sure this popup doesn’t show when I create a release build, which helps too.

3. Add as Existing Project
I’ve added the executable of the program as a project to my solution. By doing this I can set this executable as startup project, and pressing F5 will start it. The biggest advantage of this, is that I can now debug the executable as soon at is it is started. See: Debug an Executable Not Part of a Visual Studio Solution. With this, Visual Studio breaks at exceptions, but unfortunately it doesn’t seem to load the breakpoints. The following information is shown when I try using breakpoints:
breakpoint
The modules window displays: “Binary was not built with debug information.”. Can this be solved?

4. Start Action
SilentDoc noted that I can also set an external program as start action, using Properties -> Debug -> Start Action. See: Change the Start Action for Application Debugging It appears to load the breakpoints correctly this way. However, for some reason this makes the external program freeze for 5 minutes at the first breakpoint/exception encountered. After it is done freezing, things seem to work as expected. What could cause this freeze?

Edit: the freeze was caused by the external program. See accepted answer’s comments.

5. Image File Execution Options
As hmemcpy suggested, I can also use “Image File Execution Options” for Launching the Debugger Automatically. This seems to be the same as Debugger.Launch(), since it displays the same Just In Time prompt. However, this Just In Time “debugger” doesn’t debug at all: breakpoints and exceptions are ignored. Also, when working with a release build, I can’t simply disable the Just In Time prompt.

Summary
Option 1 loads breakpoints, breaks at breakpoints/exceptions, but takes too much time.
Option 2 loads breakpoints, breaks at breakpoints/exceptions, but is too slow.
Option 3 doesn’t load breakpoints, and doesn’t break at breakpoints/exceptions.
Option 4 loads breakpoints, but freezes for 5 minutes at first breakpoint/exception.
Option 5 doesn’t load breakpoints, and doesn’t break at breakpoints/exceptions.

Additional information
The external program and class library are both written in VB.NET, I am using Visual Studio 2010 Ultimate, and the target framework is .NET Framework 4.0.

Option 1 and 2 work for me, but after a while, all those dialogs and prompts become annoying, and slow me down. Option 3 and 4 seem more suitable for me, so if anyone can tell me how to get them to work, that would be great. Option 5 doesn’t seem that interesting either, I don’t want to be using regedit.exe all the time. If there are any other options, please let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:48:09+00:00Added an answer on June 11, 2026 at 11:48 pm

    Can’t you set that executable as the Starting external program when debugging ?

    Dll Project – Properties – Debug – Start External Program …

    EDIT – Sorry, I had not seen you’re already doing that :S

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is not coming from a programmer. (obviously) I currently have a programmer
This question is geared towards MySQL, since that is what I'm using -- but
I have seen this question at SO which tends to lead towards Primitives and
This question is geared towards a group of newly hired developers that need to
This question is kinda aimed towards PHP but it probably applies to other languages
I found this question which is a great starting point towards creating embedded widgets
This question is related to another question I wrote: Trouble using DOTNET from PHP.
Following up on this question: Kiosk Applications - OS X programming - Multiple monitors
This is an open question towards learning about memory optimization and code optimization for
This question is probably best suited towards anyone with some insight into disk read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.