eclipse starts debugging before clicking start/resume - c++

Does anyone know why my Eclipse (3.8 with cdt plugin) starts debugging as soon as I click on the debug button?
It normally should go to the perspective and wait for me to click start/resume button.
thanks

Related

How to disable/delete all breakpoint in Qt Creator

Is there a way to disable all breakpoints in Qt Creator?
If there is not, Is there a way to delete all breakpoints?
My Qt version is 4.7 and my OS is Ubuntu 12.04.
Go to the debugger pane at the bottom of the IDE. In the bottom right corner, there will be a breakpoint tab. Click this and you should see all breakpoints displayed. Now you can CTRL + A and right click and delete all breakpoints.
(ref.)
Photo is here https://ibb.co/thVByG3

Qt .exe file error

I was making a sleeping detection program with GUI. I decided to choose Qt for the project. I was able to build the program but when I ran it, this message popped up which I had no idea what was wrong.
Starting
C:\Users\Helianthus\Documents\QtProject\build-facelandmark-Desktop_Qt_5_11_1_MinGW_32bit-Release\release\facelandmark.exe...
Failed to start program. Path or permissions wrong?
C:/Users/Helianthus/Documents/QtProject/build-facelandmark-Desktop_Qt_5_11_1_MinGW_32bit-Release/release/facelandmark.exe
exited with code -1
The process failed to start. Either the invoked program
"C:/Users/Helianthus/Documents/QtProject/build-facelandmark-Desktop_Qt_5_11_1_MinGW_32bit-Release/release/facelandmark.exe"
is missing, or you may have insufficient permissions to invoke the
program.
Open the Qt installation path(such as:'C:\Qt\Qt5.14.2\Tools\QtCreator\bin').
Right click on the 'QtCreate.exe' program.
Select 'Attributes' or 'Property' on the Menu.
Select 'Compatibility' tab on the popup window.
Click 'Change settings for all users' button.
Check 'Run as administrator'.
Click 'OK' to close all the popup window.
Restart QtCreator, you will find it works correctly.
Just had the same problem, I fixed it by doing the following:
Go to Tools -> Options -> Buid & Run, if you scroll down the bottom of the dialog, there is a dropdown field called Build Before Deploying, you just need to set that to Build only the application to be run, then run the application again.

No reverse debugging for C++ Eclipse project

I installed Eclipse CDT and MinGW on Windows 8.1 and can launch an "Hello World" project but have no reverse debugging controls.
I saw on the net that I had to activate them in the "Customize Perspective" dialog.
When I try to activate the different commands (like "reverse resume, reverse step into") in the "Tool Bar Visibility" tab I get the error message
the command cannot be made visible in this dialog
How can I enable the reverse debugging controls in Eclipse (CDT)?
I ran into the same problem (and error message) under Linux.
I followed this Eclipse FAQ entry which seems to be a bit dated. What I actually ended up doing was:
menu Window -> Perspective -> Customize Perspective...
tab "Action Set Availability": check "Reverse Debugging"
After enabling reverse debugging there, I still cannot change the visibility in the "Tool Bar Visibility" tab of the Customize Perspective Dialog but I get another icon in the tool bar that says "Reverse toggle".
upon turning on reverse debugging via that button I have the full set of reverse debugging controls in the tool bar.

How to run app from VC++ without debug?

I'm trying to learn to love Visual C++ 2010 Express, but it is difficult! I've just created a "Hello world" console app and compiled it - no problems. I now want to run it. It seems the only option open to me is to run it in the debugger - there is a "Run" button on the toolbar but it is disabled. I don't want to debug it - I really don't like debuggers! Is there any way of just running the app from inside the VS IDE?
If you can't see the "Start Without Debugging" command in the toolbar, go to "Tools -> Settings -> Expert Settings". Basic Settings hides lots of stuff you probably want to see.
Professional version of VC2010 doesn't seem to have this switch.
Open the Tools menu
Go to Customize
Switch to the Commands tab
Select the Debug category
Drag the "Start Without Debugging" command to the Debug menu item
Edit: Full disclosure, I don't actually have VC++2010 Express installed on this computer, so I'm just sort of winging it here.
If you want to have a "Start Without Debugging" icon on the menu bar instead of in the drop-down Debug menu (even if Tools->Settings = "Basic Settings"), do this:
Tools->Customize->Commands->(choose Menu bar)->Add Command->Debug->Start Without Debugging->ok.
Then Move Up/Down if you want to change its position.

Stop eclipse CDT from debugging from main()?

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()?
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.
Open "Debug Configurations" GUI
Choose your application
Select "Debugger" tab
Uncheck "Stop on startup at main"