How to attach debugger to step into native (C++) code from a managed (C#) wrapper? -


i have wrapper around c++ function call call c# code. how attach debugger in visual studio step native c++ code?

this wrapper have calls getdata() defined in c++ file:

    [dllimport("unmanaged.dll", callingconvention=callingconvention.cdecl,                 entrypoint = "getdata", bestfitmapping = false)]         public static extern string getdata(string url); 

the code crashing , want investigate root cause.

thanks, nikhil

check debug tab on project's properties page. there should "enable unmanaged code debugging" checkbox. worked me when developed new .net ui our old c++ dlls.

if unmanaged dll being built project (for while ours being built using vs6) make sure have dll's pdb file handy debugging.

the other approach use c# exe target exe run dll project, can debug dll normally.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -