Enhancing Trace Generation-Based Software Debugging Infrastructure For Physical And Emulated Development Platforms