I am using the gdbserver plugin in Netbeans trying to attach to a remote debugging session. However I get an error: "inappropriate ioctl for device." I am able to remote debug by launching gdb from the terminal but I would like to be able to use Netbeans for debugging.
I had this problem too. I was able to fix it by running the "debugger" "Using GDB Debugger" on my project. It failed, because my project doesn't run on this machine. But after doing this, I was able to successfully run the "debugger" "gdbserver".
Related
I've been trying to setup Eclipse for some C developing. I manage to get the example "hello world" program (provided by Eclipse) to compile, however I am unable to run or debug it. Since I am able to compile, I assume that the setup for the compiler is correct, I can also find the executable file in the workspace (which will not run manually).
While trying to run it through Eclipse I get the error "Error Starting Process - Launching Failed, Cannot run program".
While trying to debug it from Eclipse, I get the error "Error in final launch sequence: Failed to execute MI command: -exec-run" and "Error creating process %path to executable%(error 5)".
I've tried changing workspace to one that has no spaces and to reinstall the compiler (MinGW) with no success.
If anyone could provide some insight on the problem I'd be very grateful.
Edit: Attempting to run the executable returns the following error: "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item." This is strange as I am running it as an admin on my machine.
Furthermore, attempting to run the executable from an administrator permission level command prompt window returns "access is denied".
It turned out my anti-virus software was blocking the file's execution, disabled it and the program ran just fine.
I am using Kinetis Design Studio v 3.0 and am trying to launch a C application on my FRDM-K64 board. The project builds just fine; however, when I try to debug, I get this error:
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Don't know how to run. Try "help target".
Don't know how to run. Try "help target".
I haven't a clue why this is happening. Other projects (such as the "bubble" example) launch just fine, and I am using basically the same launch configuration. I'm using Segger J-Link, although I tried using OpenOCD as well and got the same message. Any ideas of how to fix this?
I solved the problem--apparently my software needed to be updated. So if anyone is getting the same error, be sure you have tried checking for updates.
I am configuring a vagrant machine with ubuntu 14.04, for doing some tests with selenium and protractor. I want to run all tests in that machine without having a graphic environment. So i only need a plain output by a terminal.
I am following next resources to do that :
http://linkeshkannavelu.com/2015/07/10/virtualization-using-vagrant-for-selenium-tests/comment-page-1/#comment-838
https://www.exratione.com/2013/12/angularjs-headless-end-to-end-testing-with-protractor-and-selenium/
but when i access to vagrant machine and i try to run my tests i get next error message :
[1796:1796:0212/145406:ERROR:browser_main_loop.cc(256)] Gtk: Locale not supported by C library.
Using the fallback 'C' locale.
[1796:1796:0212/145406:ERROR:browser_main_loop.cc(256)] Gtk: cannot open display:
And i am not sure what i should do...
thanks in advance !!
See this article: https://linuxmeerkat.wordpress.com/2014/10/17/running-a-gui-application-in-a-docker-container/
Gtk: cannot open display
is a common error, as states on this page:
DISPLAY has wrong value or you forgot to export it
Also doublecheck if xvfb is running in backgroud/as service.
I am working with PostgreSQL 9.3.4 source using Eclipse IDE in ubuntu 14.04. I am facing a problem in attaching client process to postgresql server using gdb to debug. When I start the postmaster then I connect to it from client on a terminal. It works fine. Queries get responses. When I run debug config from eclipse then select postgres process id from list I get error saying
Can't find a source file at "/build/buildd/eglibc-2.19/socket/../sysdeps/unix/sysv/linux/x86_64/recv.c"
Locate the file or edit the source lookup path to include its location.
After this when I send any query from client, it just stucks. No response comes. After attaching gdb to client process, client does not get any response from postgres server. One thing to note is that I was able to debug properly till yesterday. But now it is not working. I tried reinstalling but did not help. How could I fix this issue? Kindly help.
solution which worked for me:
./configure --prefix=$HOME/project --enable-depend --enable-cassert --enable-debug
in eclipse: Make Target: install
attach client process to application
I want to use Xdebug tool for profiling code execution speed, memory usage of my php application.
My application frame work is codeigniter and IDE is PhpDesigner.
i followed the instruction in phpDesigner manual PhpDesigner xdebug configuration
But when i debug using debug option f9 in PhpDesigner menu it shows Php5.dll file is missing.
How to debug my php script using xdebug and phpDesigner
I'm using external debugging for projects on my local server.
To debug file you just need to open it in IDE and run script from browser.
Look at this tutorial http://wiki.mpsoftware.dk/doku.php/tutorials/debug_php_scripts_from_your_browser_with_phpdesigner_7_external_debugging