如何设置Trace32执行COVerage.ADD后不中断并自动执行后续CMM脚本
Hey there! I’ve dealt with this exact Trace32 quirk before—nothing’s more frustrating than having a script hang waiting for a manual "continue" click after a coverage command. Here are two solid ways to fix it:
Solution 1: Global Auto-Continue for Entire Script
If you don’t need any manual intervention throughout your script, add this line at the very start of your CMM file:
SCRIPT.AUTOCONTINUE ON
This tells Trace32 to skip all automatic script pauses (including the one triggered by COVerage.ADD) and keep executing subsequent commands without user input. It’s a one-and-done fix for fully automated workflows.
Solution 2: Disable Pause Only for COVerage.ADD
If you want to keep pauses enabled for other parts of your script but bypass it just for the coverage step, use the /NOBREAK parameter with the COVerage.ADD command:
COVerage.ADD /NOBREAK
This parameter overrides the default pause behavior specifically for this coverage database update, letting your script proceed immediately to the next line.
Quick Notes
- If you use the global
SCRIPT.AUTOCONTINUE ONsetting and later need a manual pause (e.g., to inspect a breakpoint), you can temporarily disable it withSCRIPT.AUTOCONTINUE OFF, then re-enable it when you’re ready to automate again. - Make sure your Trace32 version supports these parameters—all recent releases do, but if you’re on an ancient build, you might need to update your toolchain.
内容的提问来源于stack exchange,提问作者Thảo M. Hoàng

