Why does Matlab debugger stopped at PubSubTabu​larDataSto​re.dispIfE​rror in the new desktop

This is a bug when I'm using the new desktop in the Matlab '24.1.0.2537033 (R2024a)', under Windows 11 23H2.
To reproduce this bug, enable the new desktop, create tables in the workspace, enable the "Pause on Error" option in the Editor tab, and double click any table variable in the workspace to view them in the variable viewer.
Then, the debugger will stop at line 353 of PubSubTabularDataStore.dispIfError:
353 internal.matlab.datatoolsservices.logDebug("datatoolsservices::pubsubdatastore", sprintf("Background Executions Completed Successfully: %s%s\n", func2str(NVPairs.fcn)));
which is called by @(f)internal.matlab.datatoolsservices.messageservice.PubSubTabularDataStore.dispIfError(f,NVPairs)
712 afterEach(f, @(f) internal.matlab.datatoolsservices.messageservice.PubSubTabularDataStore.dispIfError(f, NVPairs), 0, "PassFuture", true);
This has been extremely annoying and I probably have to stop using the new desktop. I have submitted feedback though the feedback button, but I'm not sure when this will be fixed. It would be great if someone can share a temporary solution to stop the debugger from stopping here, e.g. through some settings.
I can provide more details if necessary.
Thank you

1 comentario

Could you share the MATLAB script that you are using to create the tables?
Somehow, I am not able to reproduce it on my system.

Iniciar sesión para comentar.

Respuestas (1)

I am able to reproduce the issue on the version mentioned in question. The error arises due to a typo in the dispIfError function within PubSubTabularDataStore.m, where "NVParis" is mistakenly used instead of "NVPairs." This typo has been corrected in the latest version of MATLAB.
I recommend upgrading to the latest version R2024b to resolve this issue.
I hope this helps!

Categorías

Más información sobre Debugging and Improving Code en Centro de ayuda y File Exchange.

Productos

Versión

R2024a

Preguntada:

el 7 de Mayo de 2024

Respondida:

el 13 de Nov. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by