How to resolve this error in QtCreator? Execution failed. Command failed - c++

When I set a breakpoint in the program and run it in the debug, I get this error. Please tell me how to fix it. Run in Terminal mode selected

Related

GDB Error appears while debugging OMNET++ simulation

I am working on OMNET++ project called Exfogsim and there is no problem when I run the simulation with (Run), but when I am trying to Debug it the following error appears:
with the following error
Error with command: gdb --version
Cannot run program "gdb": Launching failed
Your simulation was terminated with exit code: -2147483645. The hex representation of this number is: 0x80000003. So try search how to deal with the Windows exception 0x80000003, for example take a look at that one.

Error : Sox has exited with error code 1. How can i this error debug?

I am testing recongnize.js among Google speech api.
But now I have an error related to the Sox.
How can I debug?
it is error.
Listening, press Ctrl+C to stop.
sox has exited with error code 1.
Enable debugging with the environment variable DEBUG=record.
I've installed all of the versions 14.1.1 and 14.1.2 and entered them into $Path.
I need your help

Debugging Gtk-CRITICAL

When running my program, I am getting Gtk-CRITICAL error on the Terminal, which I'd like to fix.
I found this link through Google, but turns out there is no such option in gdb:
igor#IgorReinCloud ~/dbhandler/Debug/dbhandler $ gdb --g-fatal-warnings dbhandler
gdb: unrecognized option '--g-fatal-warnings'
Use `gdb --help' for a complete list of options.
I also tried to set a breakpoint on the g_log() function, but the execution didn't stop there.
What am I missing?
Thank you.
you can use G_DEBUG=fatal-criticals, so that the application execution breaks at the first location where a critical is emitted.
To run inside gdb, run G_DEBUG=fatal-criticals gdb my-app, and as usual, do run inside gdb to run your application.
You may also set the G_DEBUG environment variable with export (if in bash). Thus you could do export G_DEBUG=fatal-criticals, and then run your app as gdb my-app, which will have the same effect.
See https://docs.gtk.org/glib/running.html for more details
What am I missing?
Looks like that after reading the link, you were confused that gdb should have --g-fatal-warnings option for debugging Gtk applications. This is not the case because gdb is not Gtk application, but your program is. So you should run your program with --g-fatal-warnings option inside gdb like this:
gdb --args dbhandler --g-fatal-warnings
See also related question How do I run a program with commandline args using gdb within a bash script?.

Cannot debug with gdb in ubuntu

Qt creator throws an error every time I want to start debugging. Here is the error:
ptrace: Operation not permitted.
Could not attach to the process. Make sure no other debugger traces this process.
Check the settings of
/proc/sys/kernel/yama/ptrace_scope
For more details, see /etc/sysctl.d/10-ptrace.conf
I have googled the error message and got some result about bug in the kernel but I am able to run gdb in command line, so I don't think it is kernel/gdb related.
What can be the cause of this error?
I just did some research and found the solution somewhere. It turns out that /proc/sys/kernel/yama/ptrace_scope was set to 1. After I changed it to 0, the problem disappeared.
Explanations of ptrace can be found here and here, as Merlin069 said.

Where is program searching for a file "/.txr/tix.conf"

I am running a program on linux fedora in debug mode. And I get the error message
Startup Warning : Failed to open up profile at "/.txr/tix.conf"
I wanted to know what the location of of the tix file should be . I tried putting it in
Debug/txr/tix.conf
However that does not work as the program complains about the same thing. Any suggestions ?