Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Debugging C/C++ MEX files in gdb is already comprehensively covered in the <a href="http://www.mathworks.com/help/matlab/matlab_external/debugging-c-c-language-mex-files.html" rel="nofollow noreferrer">official documentation</a>, so my suggestion is to try and integrate gdb with Eclipse CDT.</p> <p>There's plenty of information out there about how to do it properly, so I'm not going to repeat everything here. The best tutorial I know is IBM's two-part guide, <i>"Interfacing with the CDT debugger"</i>:</p> <ol> <li><a href="http://www.ibm.com/developerworks/library/os-eclipse-cdt-debug1/index.html" rel="nofollow noreferrer"><i>Part 1: Understand the C/C++ debugger interface</i></a> - covers the high-level basics.</li> <li><a href="http://www.ibm.com/developerworks/library/os-eclipse-cdt-debug2/index.html" rel="nofollow noreferrer"><i>Part 2: Accessing gdb with the Eclipse CDT and MI</i></a> - explains how to make Eclipse work with gdb.</li> </ol> <p>I think part 2 is what you really need. Basically, you have to install a <a href="http://www.ibm.com/developerworks/apps/download/index.jsp?contentid=314937&amp;filename=os-eclipse-cdt-debug-ex-debugger-plugin.zip&amp;method=http&amp;locale=worldwide" rel="nofollow noreferrer">plug-in</a> and configure it in Eclipse.</p> <p>There are also quite a few related questions about this even here on StackOverflow:</p> <ol> <li><a href="https://stackoverflow.com/questions/3758794/how-do-i-use-gdb-in-eclipse-for-c-c-debugging">How do I use GDB in Eclipse for C/C++ Debugging?</a></li> <li><a href="https://stackoverflow.com/questions/4544711/how-to-install-gdb-debugger-to-eclipse-cdt">How to install GDB debugger to Eclipse CDT</a></li> <li><a href="https://stackoverflow.com/questions/1587748/debugging-with-eclipse-cdt-and-gdb">Debugging with Eclipse CDT and GDB</a></li> <li><a href="https://stackoverflow.com/questions/10177897/how-can-i-enter-commands-to-a-gdb-prompt-while-debugging-with-eclipse-cdt">How can I enter commands to a gdb prompt while debugging with Eclipse CDT?</a></li> </ol> <p>I haven't tried it out yet, so I hope this works.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload