Debug

Debug and Log model

Debug model To debug your model, you may use the debug option when you right click on an atomic model under GVLE. Default, the debug file is located at $VLE_HOME/vle-2.0.log but it can be redirected to the standard output with the command line option --log-to- stdout or --log-to-stderr. Warning, in order to have the debug service available, make sure that vle is built with the debug option for example like this(Unix case):

debug model

Debugging Macros To debug your model, you may use the DECLARE_DYNAMICSY_DBG instead of DECLARE_DYNAMICS and use some functions (TraceAlways, TraceModel etc.) to enable debugging of your model in the C++ source code. Default, the debug file is located at $VLE_HOME/vle.log but it can be redirected to the standard output with the command line option --log-to- stdout. Level Description Command line C++ 0 Minimum debug: messages are always printed vle -v 0 or vle TraceAlways() or DTraceAlways() 1 Model Debugging: to be used by model developer vle -v 1 TraceModel() or DTraceModel() 2 Extension debugging: extension functions tracking (e.