I've rolled back the feature after Pavel Zotov noted to not working (with remote protocol).
Unfortunately I've only tested this with embedded but prepare flags are passed as info codes to engine and that seems incompatible with the feature. I want this feature to work with v4 too and don't want hacks for it, nor want to spend more memory when it's not used. I want to implement it different: Add extensible management statement SET DEBUG OPTION. ISQL (internals) and applications may use this statement in replacement to what Statement::PREPARE_KEEP_EXEC_PATH were being used. Maintain ISQL SET EXEC_PATH_DISPLAY BLR/OFF (extensible to DSQL/JRD node tree) command, which will store some internal state, call SET DEBUG OPTION DSQL_KEEP_BLR = true, and later call getInfo to display. Adriano Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel