Skip to main content

Debugging RI's C (native) code !!

Please note these forums are being decommissioned and use the new and improved forums at
2 replies [Last post]
Joined: 2011-02-09

Hi All,
Do anyone know a way how to debug the "native/mpe/platform" of ri code or the C code ?
Did any one used eclipse CDT debugger or any other debugger for the same ?
Any assistance in this respect will be appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2009-04-11

Instructions for configuring Eclipse to debug the RI's Platform code are on the wiki:

Joined: 2008-07-03

At one time, we had a member of the team that was using CDT and it seemed to work well. However, I can't offer much guidance since I have never used it. Personally, I use GDB in emacs debug our native code and it works very well. You can also just run GDB from the command line.

  • Make sure your shell has all the appropriate environment variables setup (OCAPROOT, PLATFORMROOT, etc.)
  • On Windows, the command would look some thing like: gdb $PLATFORMROOT/install/Win32/debug/bin/ri.exe
  • On Linux, the command would look something like: gdb $PLATFORMROOT/install/Linux/debug/bin/ri

Hopefully, that will get you started.