필터 지우기
필터 지우기

How to debug c# .NET dlls called from Matlab?

조회 수: 4 (최근 30일)
Iain Strachan
Iain Strachan 2011년 6월 29일
How does one debug a .NET assembly written in C# called directly from Matlab? I have written an assembly and can call it directly from Matlab using NET.addAssembly and creation of objects, retrieval of properties etc.
However I find that when built in debug mode, I am unable to debug it from Matlab using my usual procedure, which is to go into DevStudio (2008) and select Debug/Attach to Process, and selecting the Matlab process (2010b). I then place a break point at the line where I wish the debugger to stop. However when I execute the call from Matlab, it does not stop but simply runs the call to completion and returns to Matlab.
I have used the above method successfully when calling, say a Mex file from Matlab. What am I missing?
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2011년 6월 29일
It seems like this should work. Is your .NET DLL a Debug build? Do you see a red dot next to the line that you set the breakpoint at?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Getting Started with Microsoft .NET에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by