Is it possible to debug mex code with Eclipse?

后端 未结 3 517
猫巷女王i
猫巷女王i 2020-12-29 08:00

I am trying to write some mex code but it is painful to debug it on the console with gbd. Is it possible to use Eclipse or the GUI of Matlab? If these are not feasible metho

3条回答
  •  悲哀的现实
    2020-12-29 08:39

    On Windows platform:
    The best way (to my experience) to debug a mex code is to use Visual studio. Here's a link on how to do it.

    Other platforms (Linux/Mac):
    I'm afraid I haven't find any good way to do so apart from gdb (which is not fun at all).

    Update (2018):

    Recently, Mathworks released a blog post describing how to use Visual Studio Code to debug mex code.
    I haven't tried it myself, but it seems like a nice cross-platform solution for debugging mex files.

提交回复
热议问题