Hovering in debug mode triggers a jump into get.property() methods

19 次查看(过去 30 天)
I have been experiencing an aggravating thing for the past several Matlab releases and for which I am looking for troubleshooting advice. Unfortunately, I haven't been able to identify a minimal example to reproduce it.
Sometimes, though, when I am stopped in debug mode within the workspace of some class method, if I hover the mouse over an object (of that class or perhaps also other classes), I am immediately catapulted to a breakpoint in the workspace of one of its set.property() methods. This new breakpoint was not set by me and no error messages are shown in the command window to indicate that it was raised by an error
As an example, the screenshot below shows an instance where I have stopped in a method called vmi() of class SegmentedLabelMap, whose parent class is MatDecomp.
When I then hover the mouse over "obj" as yellow-highlighted in the screenshot, the debugger transports me (see 2nd screenshot below) to a different location in the workspace of MatDecomp.get.meta(), which contains the definition of one of obj's property get() methods. Moreover, a string of "datatipinfo" function calls now appears in the call stack, as yellow-highlighted in the 2nd screenshot.
I assume this occurs because the get.property() needs to be called to gather data for the datatip display. However, I wonder why it creates another breakpoint in get.meta() rather than just executing this to completion? In any case, I don't like this behavior. Is there an Editor preference setting to turn it off?
  2 个评论
Mario Malic
Mario Malic 2024-3-26
I remember experiencing this. Check the dropdown menu under the Run button, and see if you have any options checked in the ErrorHandling section.
Might be irrelevant, but I would suggest to close variables that are related to the class from the variable viewer. As hovering over them might up somehow interact with variable viewer window.
Matt J
Matt J 2024-3-31,13:24
Thanks, but I never open the variable viewer, so that couldn't be the issue.
As for the ErrorHandling section, I have nothing checked there, but even if I did, I don't see how it woudl explain the behavior. Any user would surely want to be able to activate those ErrorHandling options freely, without having to experience what I'm describing.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by