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

  • Home
  • SEARCH
  • 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 6545271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:33:56+00:00 2026-05-25T11:33:56+00:00

Similar to this problem here: Old Question about C# debugging I’m trying to debug

  • 0

Similar to this problem here:

Old Question about C# debugging

I’m trying to debug a library that’s used in multiple projects and is compiled using Intel’s C++ v 11 compiler (ie, not the standard compiler) in Visual Studio 2008. The current platform I’m using to debug is a C# program that calls the C++ method through a p/invoke.

Is there a way to debug into the C++ code (which has been compiled in debug mode) short of doing something like starting some huge loop in the C++ code and attaching a debugger to the process? Right now, the C# code just steps right over the C++ call.

I’ve set it so that I can debug managed and unmanaged/native code, as well as debug ‘not my code’, but those settings don’t seem to matter.

I really, really want to avoid adding the C++ project to the C# project; as I said, it’s a library that’s called by multiple programs, so doing so would have serious consequences to those other programs and maintenance.

  • 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-05-25T11:33:57+00:00Added an answer on May 25, 2026 at 11:33 am

    The answer: Set the debugging executable and running directory for the dll, and then try to debug from the dll as a separate project. That is, load the intel project in one sln file, and then have the C# project in a different sln file.

    Then, when you try to debug the dll via f5/the debug button, the executable will start, and the code will execute, up to whatever breakpoints you’ve set.

    Make sure to have a post-build step to put the dll into the same directory as your C# executable; otherwise, the dll will be out of sync with the code that’s actually run, and the results will be strange (ie, breakpoints not lining up, etc).

    Also, with this approach, you will lose edit and continue (or, if there’s a way to keep it, I don’t know of it), but at least you get to debug in.

    (answer posted for @Dmitri Nesteruk)

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

Sidebar

Related Questions

Similar question here but this is slightly different... I have two tables that I
This question is about a whole class of similar problems, but I'll ask it
I have a similar problem to this post . I need to display up
This is similar to the cutting stock problem , but with a slight difference.
Similar to this question , after running the following code the browser dialog does
Similar to this question ... What are the worst practices you actually found in
Similar to this question, but for VB.NET since I learned this is a language
Similar to this question but for MySQL.... How can I programmatically determine foreign key
This is similar to this question , but I want to include the path
I know this is similar to this question , but I'm using SQL Server

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.