How can I insert breakpoints and implement debug step-by-step execution when running the FFE class functions in Serdes Designer Tools?
30 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
dpb
el 21 de Sept. de 2025 a las 16:40
Editada: dpb
el 22 de Sept. de 2025 a las 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 comentarios
Ver también
Categorías
Más información sobre Customize SerDes Systems en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!