Why does my debugger stop when I try to create a legend using the LEGEND function in MATLAB 7.0 (R14)?
1 view (last 30 days)
Show older comments
When I attempt to create a legend using the LEGEND function in MATLAB 7.0 (R14), I receive the following message:
Caught-error breakpoint was hit in getappdata at line 27. The error was:
Reference to non-existent field 'LegendLegendInfo'.
The debug prompt (K>>) then appears.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
The reason for this behavior is that the GETAPPDATA function, which is called by the LEGEND function, enters a CATCH block.
To work around this issue, disable the "always stop in catch block" option in the debugger settings. To do this, use the following procedure:
1. Select "Debug -> Stop if Errors/Warnings..." from the Desktop menu bar.
2. Select the "Try/Catch Errors" tab.
3. Click on the "Never stop in catch block (dbclear if caught error)" radio button.
0 Comments
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!