How can I insert breakpoints and implement debug step-by-step execution when running the FFE class functions in Serdes Designer Tools?

How can I insert breakpoints and implement debug step-by-step execution when running the FFE class functions in Serdes Designer Tools? In the CEI-224G-MR Transmitter/Receiver IBIS-AMI Model example provided by MATLAB, I want to step through the stepImpl function in FFE to learn the specific calculation process within the function.
Step 1: Added print statements and inserted breakpoints in the stepImpl function.
Step 2: Clicked the run button in the Simulink menu bar to start simulation.
Step 3: The 'stepImpl stop' print information can be seen in Simulink's Diagnostic Viewer, indicating that the program has executed into the stepImpl function. However, the program does not pause here and eventually completes running.
How can I make the program pause at the stepImpl function of FFE for debug debugging?

답변 (1개)

dpb
dpb 2025년 9월 21일
편집: dpb 2025년 9월 22일
See and explore the <Test and Debug Simulations> documentation. In it you'll find that the simulation needs to be run under the debugging environment with sldebug instead of just running the model and there's a caveat reproduced below about setting breakpoints...
"To start a simulation debugging session interactively, add one or more breakpoints to your model, and in the Breakpoints List, check that Pause within time step is selected. When the simulation pauses on a breakpoint, some of the programmatic debugging commands, such as the stop command, are available for use in the MATLAB Command Window."
I would surmise the issue is the above that the breakpoints list does not include the 'Pause within time step' set and so the simulation does as you see; just continues on.
However, as far as seeing what the code does, you should just be able to read the m-code to read it directly.

댓글 수: 1

The issue has been resolved by changing the simulation method from code generation to interpretive execution.thanks you

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Customize SerDes Systems에 대해 자세히 알아보기

제품

릴리스

R2025a

질문:

2025년 9월 21일

댓글:

2025년 10월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by