stop eclipse CDT from debugging from main

2019-04-04 04:35发布

问题:

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

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

回答1:

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.