Debugger will not "Step In" to function/method
Show older comments
Class with several methods. The debugger will not step into - using debugger interface "Step In' - one of the functions. It will stop there if I add a break point. The function is doing its job and looks no different, to me, from any other I've ever written. No other function in the file behaves like this.
Anyone seen this before? I'm concerned something more may be wrong!
5 Comments
James Tursa
on 22 Dec 2024
Is the function an m-code file? Or is it p-code or compiled code?
Dave Watson
on 22 Dec 2024
dpb
on 23 Dec 2024
What if you physically rearrange the order of the functions in the file; does the behavior change?
I'd think the only possible way to learn anything here would be to attach the file such that somebody else could test the behavior on another system to see if it is within your specific installation or is somehow actually a characteristic of the specific file/function.
Just ouf of curiosity, is the behavior repeatable if you dbclear all and/or begin a clean session? I've had a few instances where it seemed like perhaps the debugger got confused after a long session and after restarting all seemed normal again. I'm never surprised if there are some warts in such code; it's bound to be extremely complicated to write/maintain.
If nothing seems to make the behavior go away including any patches to the release, it may just be a bug. But, if the Release information you attached is correct, it's almost 10 years since R2015b; it may be time to consider upgrading.
Dave Watson
on 23 Dec 2024
Edited: Dave Watson
on 23 Dec 2024
dpb
on 23 Dec 2024
If you have kept the maintenance up; you could always submit a bug report and see what TMW says/responds but I'd guess they're not going to be very interested in R2105b at this point unless they can reproduce the issue in a current release.
If you can't pull just the one class module out with a driver routine to let somebody step into the subject function, then I think there's no possibility of anybody being able to do anything remotely.
Answers (0)
Categories
Find more on Introduction to Installation and Licensing 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!