Using the C debugger


#1

How can I use the slide-out debugger tray with a C/C++ program?

The page at https://docs.c9.io/docs/debugging-your-code says that C++ is supported, but there is no information about how to hook the visual debugger up to a GDB session. Can someone point me to some documentation about it?


#2

You need to launch the executable with a runner similar to https://github.com/c9/core/blob/master/plugins/c9.ide.run/runners/C%20(make).run#L6

This is needed because cloud9 needs gdb to be launched with special set of arguments https://github.com/c9/core/blob/58b6fa3d98be8a73ed10348ee5f5ec10601312c7/plugins/c9.ide.run.debug/debuggers/gdb/shim.js#L648