When I first tried Visual Studio Code it was still the preview build. Today in this blog post we are looking into a different tool, which is one of my recent-favorite free development tools: Visual Studio Code (VS Code). Immediately after the release of MATLAB R2015b, I wrote up a guide on how to debug using Eclipse, which my colleagues turned into a MATLAB Answer Article. However, in MATLAB R2015b we started to support the MinGW64 compiler which leverages the gdb debugger, and there are various different front-ends/editors/IDEs which can work with gdb. In fact, getting started with this debugger is part of the actual in-product documentation. We supported the Microsoft Visual C++ compilers for creating MEX-files and if you used that compiler, Microsoft Visual Studio was the obvious choice for a debugger. We can provide some hints and tips on what kind of issues to look out for, we can answer questions on the mxArray- and MEX APIs, and we can help you choose and setup your debug environment, which is what I’d like to talk about in this post.Ĭhoosing your debug environment on Windows has historically been pretty simple. While we can’t debug your MEX-file source code for you, this is not part of the support which we offer, we can help you with strategies to debug your code yourself. This can happen because MEX-files are native libraries which can manipulate the native memory inside MATLAB and even the smallest memory corruption can easily lead to a whole application crashing. ![]() Sometimes the MEX-files do not produce the expected result, and sometimes they completely crash MATLAB. Take it away Martijn!Īs a MathWorks Technical Support Engineer specializing, among other things, in the MATLAB "external interfaces" areas, I regularly work with MATLAB users having some difficulties with their custom written MEX-files. As part of that he as a great story to tell about how he has integrated with Microsoft's applauded VS Code IDE. Martijn is a support engineer out of our Netherlands office who daydreams about MATLAB's connections to the external world. ![]() Folks, today I'd like to introduce a new guest blogger Martijn Aben.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |