GUI for a GNU Debugger [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
am pretty excited with the GNU Debugger and a GUI called Insight as it has saved me A LOT OF time. Thus I am posting this question/answer for other newbies out there like me having problems with their C code looking for a visual way to see what's going on.
I am working on Linux Mint (Ubuntu) btw.

I highly recommend ddd especially if you have complex data structures to visualize.

Install Insight a GUI for GNU Project Debugger
Compile your source
Run the debugger
_
$ sudo apt-get install insight
$ gcc -g source.c -o application
$ insight

When developing for Windows using GCC. The best is to use Affinic Debugger GUI(GDB). it is newer design. it is similar and better than DDD. It also works for Linux and Mac

NetBeans has a nice front end for gdb. So does Eclipse.

Your are right that we load the executables, but when you are compiling you will need to compile with the debug flag (think is it -g in gcc, abit rusty on that ), that will insert the debugging information into the executable/obj files.

When developing for Windows using GCC (e.g. MinGW), I often found it painful to get a GUI for GDB working (And I have a disliking for Eclipse), but I'm really fond of the Code:Blocks IDE.

Related

Is there any C compiler that does NOT come with an IDE? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am new in C programming, and I was searching the internet for a compiler (for Windows 10). The compilers I found all had a full IDE included, but I don't need the IDE (I have a code editor). Is there any C compiler that does not come with an IDE, or at least a way to download one without the IDE?
This is going to get closed, but anyway, you can use any linux based compiler such as gcc or clang.
Also, Visual c++ has a compiler that can be used at the command line. In fact, nearly all C compilers can be used at the command line.
I think Microsoft makes their compiler available for download free. Only the IDE costs money. The compiler itself runs by command and when you use the IDE it just runs the command in the background.
How to install gcc in Windows 10? (the easier way)
How to Install the Latest GCC on Windows
Installing GCC: Binaries
You should be able to install GCC without an editor. https://gcc.gnu.org/install/binaries.html
To install it, follow the tutorial here to use MinGW, or use this tutorial to use Cygwin.
On the other hand, you could just use an editor that includes support for GCC. It may already be built into your IDE.

Where to find C source code on mac? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I was looking through a programming textbook and saw a particular header i didn't recognize. Later I looked it up on the internet but I was wondering where the source code of C can be found on a macbook. Is it just in the compiler? (I use gcc) Please help.
If you have Apple development tools installed, it should be found in the most possible unixoid place: /usr/include/ctype.h - At least that's where it is on my Macbook with Xcode installed.
The source code to much of the OS/X operating system and utilities, including the C library can be found at http://opensource.apple.com/ .
The source for the current version of the C library is here: http://opensource.apple.com/source/Libc/Libc-1082.50.1/ .
For other packages installed via brew or macports, use the corresponding command to retrieve the source for the packages. Look at the man page to see how.
Note that the gcc command actually runs clang on recent versions of XCode under OS/X. Try gcc --version...
The newest (clang-based) versions of XCode seem not to use /usr/include. I eventually found the headers down in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include. (I created a symlink in /usr, for sanity's sake.)

Learn C for programmers [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I would like to learn how to work with C,
The things I have problems with are compilation and makefiles, not so much the C syntax. Most books deal mostly with the language, but what I'm looking for is more the other parts. What IDE and compiler do I use, and how do I use these.
Thank you very much!
I would recommend gcc for the compiler and just a normal text editor for the ide. Compilation and working with makefiles is relatively simple, you could learn all you want by just googling it. I started out with vi and gcc. Now I use eclipse, netbeans, and gedit for when I am using c/c++.
If you are looking at strictly C, than there is nothing probably better on a nix system than Vim and Make.
Programming isn't always easy. Struggle with it and learn.
If you don't mind more C++ than I would recommend the following:
I have also used Code::Blocks which is a free open source IDE available for *nix systems.
On Windows just use Visual C++ Express which is also free.
Both Eclipse and Netbeans have functionality to develop and build C programs.
There's lots of tutorials e.g. Getting Started With the NetBeans C/C++
Much depends of the OS you actually use to compile. Really IDE and Makefiles are not C related and there is books about them. I would suggest to try a minimalist environment (any text editor and compiling from command line) to understand what is under the hood, then go for a full featured IDE.
Use gcc, write a Makefile for every project you make (even a small hello world program), and use gdb to debug. As for editing code, use whatever you enjoy typing in.

Beginners' guide for setting up Emacs with gcc/gdb? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I looked around the GNU emacs material and didn't find anything helpful.
Does anyone know of a good tutorial for setting up emacs, to basically turn it into an IDE? I'm looking for interfacing with gcc/gdb/make, etc...
Like other answers mentioned, M-x compile, M-x gdb will get you going. While debugging, I'd also suggest gdb-many-windows-mode, which makes Emacs look a bit closer to IDE when debugging.
Besides that and to get closer to "IDE-like features", you can look at:
CEDET http://cedet.sourceforge.net/ for code completion and project support. Excellent tutorial at http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html .
If you don't mind using non-free software, Xrefactory (http://www.xref.sk/xrefactory/main.html) is probably the best (well, the only) refactoring tool. The C version is free, the C++ is not.
Yuval, you're probably being misled by looking for something about IDEs. All that stuff is automagically built into EMACS except for the CScope-like searching stuff.
M-x compile runs make by default, although I reset it to run Ant in java mode.
M-x gdb runs gdb
C-x ` (Ctrl-X backquote) goes to the next compile error
and so on.
Go dig about in the EMACS Wiki. Lots of good stuff. The Programming Category is where you should look.
Good Article
Look at CScope too... you just have to add two lines to your .emacs to be able to navigate through definitions and references
Even though not directly related to C/C++ i find that using a good color scheme is important. Try:
M-x color-theme-select
and you can browse around a lot of different setups if you do not want to create your own.
If you're working with version control system, you can find useful information in another my article about work with version control systems from emacs

Is there an open source C visual debugger for windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is there an open source C visual debugger for windows?
I have heard about the visual C++ express free edition, but does it have a visual debugger?
Thanks.
It's not open source (but then does it really need to be?) Visual C++ 2008 Express Edition is an IDE with an integrated debugger.
You can create a C++ project, delete the .cpp files and create/include your .c files.
Eclipse CDT is a good alternative. It also has some nifty features such as refactoring and a preprocessor macro explorer.
I found a claim that the DDD debugger will run on Windows under Cygwin. I've used DDD quite a bit and like it.
Look at CodeLite IDE. I could attach to gdb debbager and provide GUI for it.
Visual Studio is the standard for windows development. I have never seen a better IDE for this platform (or any other for that matter).
If has a debugger integrated in the IDE. Try it - you'll probably like it.
I'm using Insight that is a graphical frontend to GDB in conjunction with mingw (gcc).
You can also use Code::Blocks that has an integrated debugger interface (I only tried it with gcc/gdb but it should work with other compilers/debuggers).
If you don't mind them not being Open Source (but just free to use) you can have a look at "Pelles C" (for Windows and Windows Mobile) and "lcc-win32" both based on the lcc compiler.
Of course, the already suggested Visual C++ Express from Microsoft will work perfectly on Windows.

Resources