Open koo5 opened 3 years ago
gets even crazier:
> swipl --debug=true -g debug
?- current_prolog_flag(debug, X).
X = false.
?- debug.
true.
[debug] ?- current_prolog_flag(debug, X).
X = true.
The --debug
option affects the generate_debug_info
flag according to the docs. -g debug
probably doesn't work because the -g goals are executed with some isolation that restores several settings after completion of the option. If you want to debug a goal from the commandline you probably need -g debug,mygoal