【问题标题】:Debugging DLLs used in Matlab调试 Matlab 中使用的 DLL
【发布时间】:2015-08-06 13:53:24
【问题描述】:

我正在为 Matlab (.NET in Matlab) 使用的库生成 DLL/PCB 文件。在 Matlab 中,我指向库项目的 Debug/bin 文件夹。

NET.addAssembly('some\path\Debug\bin\MyLibrary.dll'));

当从 Matlab 而不是 Visual Studio 应用程序加载 DLL 时,是否可以调试在 Matlab 中使用的 DLL?

【问题讨论】:

    标签: c# matlab debugging dll


    【解决方案1】:

    使用 Visual Studio,您可以转到“调试”->“附加到进程...”并将调试器附加到加载您的 DLL (MATLAB.exe) 的进程。

    注意事项:

    1. 您的 PCB 文件需要在加载的 DLL 目录中。
    2. 在“选择代码类型”对话框中选择托管代码类型,因为它会自动为 MATLAB 选择本机代码类型。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-17
      • 1970-01-01
      • 2010-09-07
      相关资源
      最近更新 更多