How to disable Eclipse debugger from stopping at main

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s