Abstract:Proposed and implemented a technology to capture the trace of running software based on BCI agent. Without converting the original code and without the weaver needed in Aspect-Oriented Programming (AOP), it inserted probe code into the target system to implement the function of monitoring the trace capture and provided technical support for further analysis and judgement on the software running behavior.