Use variables in dbstop
2 views (last 30 days)
Show older comments
Hello. I want to ask if I can use dbstop for a specific input defined before the function is called.
The file and line will be defind by the user, then when dbstop is called, I want the breakpoint to be put in that defined file and line, as follows
dbstop in file at line
Is there anyway to do that? Thanks
Chris on 15 Nov 2021
Edited: Chris on 15 Nov 2021
Usually, functions that have input forms like dbstop has can also be called like a normal function. I'm not sure why it's not documented--perhaps it's considered dangerous to do it this way.
More Answers (0)
Find more on Debugging and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!