Debugger tooltip for FORTRAN files

General questions regarding the usage of CodeLite
fotis
CodeLite Curious
Posts: 9
Joined: Wed Dec 28, 2011 10:31 pm
Genuine User: Yes
IDE Question: c++
Contact:

Debugger tooltip for FORTRAN files

Post by fotis »

I have managed to build and run gdb for a FORTRAN project with Codelite using a Custom Makefile.

What I am missing is the debugger tooltip which seems not to be enabled for *.for files. The "watches" window is working ok.

Is there a way to enable the tooltip?
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debugger tooltip for FORTRAN files

Post by eranif »

Try adding the *.for to the C++ extension file list, under Settings->Colours and Fonts->C++->File extensions
By doing this, codelite will treat all *.fort files as C++ files

Eran
Make sure you have read the HOW TO POST thread
fotis
CodeLite Curious
Posts: 9
Joined: Wed Dec 28, 2011 10:31 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Debugger tooltip for FORTRAN files

Post by fotis »

Thank you eranif, it is indeed working now (after restarting).
fotis
CodeLite Curious
Posts: 9
Joined: Wed Dec 28, 2011 10:31 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Debugger tooltip for FORTRAN files

Post by fotis »

However the syntax highlighting is gone now :(
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debugger tooltip for FORTRAN files

Post by eranif »

A quicker way to change the syntax highlight during debug session, is from the view menu:
View->View As->Fortran
This will force codelite to display the file as C++, without doing "permanent" changes to your syntax highlight settings

Eran
Make sure you have read the HOW TO POST thread
fotis
CodeLite Curious
Posts: 9
Joined: Wed Dec 28, 2011 10:31 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Debugger tooltip for FORTRAN files

Post by fotis »

If View->View As->Fortran is selected then the debugger tooltips are not showing up (again).

So the best approach seems to be:
1. To avoid adding the *.for to the C++ extension file list, so as to have syntax highlighting in "edit mode".
2. To temporarily switch to View->View As->C++ in a debug session, activating tooltips and missing syntax highlighting.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debugger tooltip for FORTRAN files

Post by eranif »

fotis wrote:To temporarily switch to View->View As->C++ in a debug session, activating tooltips and missing syntax highlighting
Yes, this is what I meant to write :P

Eran
Make sure you have read the HOW TO POST thread
Post Reply