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 8952557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:54:03+00:00 2026-06-15T13:54:03+00:00

There is an external workflow that executes C# scripts and is able to work

  • 0

There is an external workflow that executes C# scripts and is able to work with DLL files(my class library).

Is it possible to attach debug to my class library project so breakpoint will hit once this WF will call it?

Thanks

  • 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-15T13:54:04+00:00Added an answer on June 15, 2026 at 1:54 pm

    Yes, you can do this with Visual Studio. You have two options:

    Configure your project to start the external program

    1. Open your DLL project.

    2. On the properties for the project, go to the Debug tab.

    3. Choose Start external program and give the path of the external program that will call your DLL, along with any command-line arguments you may need to supply, and the working directory if that’s relevant.

    4. Save the project.

    5. Set breakpoints in your code where you want them.

    6. Press F5 to start debugging. (At this point, your breakpoints will say that they won’t be hit because the symbols aren’t loaded. Don’t worry about that for now.)

    7. Do whatever you do to make the external application load your library and run your code.

    Visual Studio will detect the module load, load the symbols, and stop on the breakpoint.

    Attach to an existing process

    If you can’t start the process but instead have to attach to a process that’s already running, you can do that too:

    (Side note: If you’re using the “Express” edition of Visual Studio, I don’t think it has this feature, but I’m not certain about that. It’s easy enough to tell: You’ll either have the menu item mentioned on Step 4 below or not.)

    1. Make sure the process is running.

    2. Open your DLL project.

    3. Set your breakpoints, etc.

    4. From the Debug menu, choose Attach to process…

    5. In the resulting dialog box, find the process in the list, highlight it, and click Attach.

    6. Visual Studio will go into debug mode. (At this point, your breakpoints will say that they won’t be hit because the symbols aren’t loaded. Don’t worry about that for now.)

    7. Do whatever you do to make the external process load and run your code.

    Visual Studio will detect the module load in the external process, load your symbols, and stop on your breakpoint.


    N.B. In both cases, if the external process loads your DLL from somewhere other than the bin/Debug folder of your project, you must make sure you copy the DLL to that other location every time you build it (you can set that up to happen automatically in the project options). Otherwise, Visual Studio won’t be able to detect that the DLL being loaded is the one you’re trying to debug.

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

Sidebar

Related Questions

Is there any external library using which one can edit and save XML files
I have a library that does I/O. There are a couple of external knobs
Is there any external jar that can be used to unzip files using java.Some
Is there any external library out there that does in-memory caching? I was just
Is there a way to load external CSS files, like we load JS file
I have a page that loads an external HTML page into an iFrame. There
I have certain PHP class methods that access external variables. These variables are not
Can we Debug Xaml in WPF? Is there any external tool or VS plugin
I am building a stand alone program so there are no external files for
There is an external server posting data back to my server that is coming

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.