ExpandCollapse

+ 1 Debugging

Felix has a number of special features to help with debugging. Of course you can debug the generated C++ code in the usual way. Don't forget you can say:

flx --nofelix prog

to skip translation of Felix programs to C++, which allows you to edit the C++ code, say, adding debugging prints.

+ 1.1 Debug module

...

+ 1.2 Trace

Felix has a special trace command:

  var name = "FELIX";
  trace name "string";

To use this you must compile with the FLX_ENABLE_TRACE macro defined:

flx -DFLX_ENABLE_TRACE abc

which prints something like:

1 : TRACE: hello
Felix location: ./abc.flx 2[1]-2[16]
C++ location  : ./abc.cpp 76