Stop eclipse CDT from debugging from main()?
Asked Answered
B

2

17

If I debug my C++ code using eclipse CDT, it appears that it always starts the debugging process from the main() function, even though there is no breakpoint at the beginning of the main().

Is there a way to have eclipse CDT start to debug from the first breakpoint rather than main()?

Brickkiln answered 24/4, 2011 at 1:26 Comment(1)
possible duplicate of How to stop GDB from executing "break main" by default in Eclipse?Unearned
S
21

On the menu Run -> Debug Configurations, right click the C/C++ Applications item on the left, and create New configuration. Go to the Debugger tab and uncheck the Stop on startup at checkbox.

Suilmann answered 24/11, 2011 at 9:21 Comment(0)
C
1
  1. Open "Debug Configurations" GUI
  2. Choose your application
  3. Select "Debugger" tab
  4. Uncheck "Stop on startup at main"

enter image description here

Cylindroid answered 11/1, 2022 at 9:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.