Jump to content
  • Advertisement
Sign in to follow this  
Hodgman

Debugging unmanaged C++ from C# in MSVS 2003

This topic is 3905 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a C# application, which loads plug-ins that are written in good old C++. If I set a break-point in my C++ code, I can step through the code as usual. My problem is that if an unhandled exception occurs in my C++ then the debugger breaks somewhere in the C# code (on a meaningless line like "App.Run()"). Usually in my C++ programs, if there is an unhandled exception (such as dereferencing a null pointer), then the debugger will break on the line which triggered the exception, which makes debugging oh-so-easy! But for some reason when debugging this C# app, it decides to throw away the C++ exception/call-stack altogether, and gives me a useless .Net exception instead. Is there any way I can debug my C++ code as if it wasn't being run from a C# app?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!