BS-10723, fix integration of debug mode between web en engine