Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Cygwin gdb debugger

Le 03/11/2010 04:55, Xi Chen a écrit :
Hi Huacheng and everyone,

I tried to Google the solution but couldn't find any similar case. I don't know if I missed something very fundamental...Maybe it is useful to describe my problem again more clearly.

If I go to the menu "run"->"debug configurations", and pick a executable file e.g. "hello.exe", then under the "Debugger" tab, the drop down menu contains three options: gdb/mi, gdbserver and MinGW gdb. Is there a "cygwin gdb debugger" missing from my settings?

Hi Xi Chen;

I am just a normal user of photran, but it seems to me that the list of debuggers that you will have depend on your environment (Windows/Linux/...) and the Tool Chains available for the type of project you have chosen: especially on windows, you can have gfortran provided by MinGW or cygwin or native (e.g. the one from http://www.equation.com/servlet/equation.cmd?fa=fortran that I warmly recommend).
In my experience, I even had only gdb/mi and gdbserver as possible choices in some instances.
However, although I have been using photran for several years on Linux, Win32 and Win64 now, I must admit that I am still often unable to debug properly my codes (but it may come from the fact that I often transfer projects between Linux and Windows back and forth), so that the link to the debugger is probably the weakest point of photran in my opinion.
For example, just at the moment, I have a code under Linux in a makefile project (compiled with -g) that execute without opening the debug perspective when I click on the bug button...

PS1: a priori, gdbserver will be useful only if you debug code on another machine using PTP.
PS2: if someone could recall briefly the differences between plain gdb and gdb/mi I would be grateful! ;)
--
Sincerely yours,

Michel DEVEL

Back to the top