Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to disable Eclipse debugger from stopping at main

📅 2014-Jul-15 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ debugger, eclipse ⬩ 📚 Archive

Eclipse with CDT can be used to compile and debug C++ code. Whenever the debugger is started it first stops at the main function of your program. If you would like the debugger to continue on until it hits a breakpoint or runs into an exception, this feature can be turned off.

Disable for project

Click the down arrow beside the Debug button (the bug) and choose Debug Configurations. In the left side of the dialog, choose the debug configuration you want to modify. Choose the Debugger pane on the right side and disable the option Stop on startup at main.

Disable globally

Go to Window > Preferences > C++ > Debug > GDB. Disable the option Stop on startup at main.

Reference: Eclipse CDT FAQ

Tried with: Eclipse 3.8.1 and Ubuntu 14.04

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧