MEX Debugging with VS code
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I'm trying to use VS Code to debug mex-files. I used the tutorial described here. However, my breakpoints seem to be simply skipped. Does somebody has similar experiences or perhaps even a solution to the problem?
For compilation I used MATLAB R2016b (tried also 2018a with no effect) and mingw64 with gcc version 7.3.0. The used gdb version is 8.0.1.
Any help would be appreciated, thank you!
3 comentarios
Respuestas (1)
Lipi Vora
el 10 de Sept. de 2018
Hi,
I followed the steps mentioned in the tutorial for an example MEX file found in my case in, “C:\Program Files\MATLAB\R2018a\extern\examples\mex\arrayProduct.c” MATLAB folder. I am able to hit breakpoints in the “arrayProduct” function in VS Code. I would recommend you try the steps with a sample MEX file to eliminate issues that might be arising specific to your source code.
Also, could you attach an image of the lines where you have issued a breakpoint? At times these breakpoints might have a warning symbol attached to it which might pre-indicate that the breakpoint would not be hit.
2 comentarios
Ver también
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!