In Netbeans 8, I'm debugging a C++ project. But I dont seem to find where to config gdb to "break on exceptions".
I go to main menu "Tools" -> "Options" -> "C/C++" -> tab "Debugging Options". Nothing found. Could this be a bug? (The options dialog is different than for a Java project).
(In Eclipse CDT, when debugging, there's a way to access the gdb session to manually issue a "catch throw", there is no such thing in Netbeans).
Naa, found it, in Menu Windows -> Debugging -> Debugging Console.
Then you can issue the "catch throw" there.
Related
This question was asked many times and I failed to replicate all of the solutions I could find. I am unable to find this setting under File->Project Settings (as some suggested). Please be very specific. If you know an answer for Xcode 7, chances are it will work for me too.
It's the same for 7 and 8. From the Project Navigator, select the project. In the main panel, at the top left, select the target. Now the main panel should have General, Resource Tags, Build Settings, Build Phases, & Build Rules along the top. Select Build Settings, select All. Scroll down to "Apple LLVM 8.0 Language C++" and expand it. Change "C++ Language Dialect" to "C++11 [-std=c++11]".
Build Settings -> Linking-> other linker flags -> add to "-lc++"
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 do I step through the program one line at time.
Also, how do I view the console input?
I recently installed Eclipse IDE here:
http://www.eclipse.org/downloads/
Eclipse IDE for C/C++ Developers (includes Incubating components)
Go to Run, Debug Configurations and click the Debugger tab.
Make sure that there is a gdb debugger selected. If not click Browse find the gdb.exe. It will probably be in your installation directory (of eclipse I mean under the /bin subdir).
Hope it helped. :D
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.
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"