How to debug C# .NET assembly called from MATLAB?

16 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 7 de En. de 2021
Editada: MathWorks Support Team el 17 de Dic. de 2024 a las 14:40
I'm trying to use some .NET assemblies from MATLAB but I am encountering a MATLAB System Error.
I was wondering if there is some additional debug logs I can turn on to see the details of the system error to determine what in my .NET assembly might be causing the crash.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 17 de Dic. de 2024 a las 0:00
Editada: MathWorks Support Team el 17 de Dic. de 2024 a las 14:40
Follow the steps below to debug a .NET assembly called from MATLAB:
  1. Compile the C# code in 'Debug' mode in Microsoft Visual Studio.
  2. Select 'Attach to Process' from the 'Debug' tab in Visual Studio and select the MATLAB process from the 'Available Processes' window.
  3. Place a break point at the line where you wish the debugger to stop and call it from MATLAB.

Más respuestas (0)

Etiquetas

Aún no se han introducido etiquetas.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by