Page 1 of 1

Debugger tooltip for FORTRAN files

Posted: Mon Sep 15, 2014 4:07 pm
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?

Re: Debugger tooltip for FORTRAN files

Posted: Mon Sep 15, 2014 5:03 pm
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

Re: Debugger tooltip for FORTRAN files

Posted: Mon Sep 15, 2014 5:31 pm
by fotis
Thank you eranif, it is indeed working now (after restarting).

Re: Debugger tooltip for FORTRAN files

Posted: Mon Sep 15, 2014 5:33 pm
by fotis
However the syntax highlighting is gone now :(

Re: Debugger tooltip for FORTRAN files

Posted: Mon Sep 15, 2014 5:52 pm
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

Re: Debugger tooltip for FORTRAN files

Posted: Mon Sep 15, 2014 6:01 pm
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.

Re: Debugger tooltip for FORTRAN files

Posted: Mon Sep 15, 2014 6:08 pm
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