6

I hava install sublimeGDB in my sublime text 2, and my setting is right. Then I press F9 in a line to set a breakpoint. When I press F5 to run, I found my program can not stop on the breakpoint, and the program finished running. The information show below is "GDB session ended". The GDB view is appear in just 0.5 sec., and then disappear.

YuChan
  • 197
  • 1
  • 1
  • 8

1 Answers1

0

You have to compile your executable with debug information included by adding -g option to the GDB command line which is not being added by default by Sublime Text C++ build system. Check this answer for more details how to do it.

bobeff
  • 3,543
  • 3
  • 34
  • 62