trex2 debugging