How can I insert breakpoints and implement debug step-by-step execution when running the FFE class functions in Serdes Designer Tools?
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?



0 Kommentare
Antworten (1)
dpb
am 21 Sep. 2025 um 16:40
Bearbeitet: dpb
am 22 Sep. 2025 um 14:28
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Customize SerDes Systems finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!