What should I do to fix this debug-not-working issue?

10 visualizaciones (últimos 30 días)
hwangy
hwangy el 15 de Nov. de 2016
Respondida: Walter Roberson el 15 de Nov. de 2016
Hello,
I am using a R2015a(8.5.0.197613) 64-bit on Windows 7. When I try to debug, the hole debugging menu turns unclickable. Cannot quit, proceed, step in, or else. In order to get out of that status I have to modify the code and save it, or turn MATLAB off and on.
I am not sure if this might be the cause, but it always gives these long warnings and errors when I turn on the software:
"
C:\Program Files\MATLAB\R2015a\toolbox\local\pathdef.m: Cannot open file: permission denied.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2015a\toolbox\local
Warning: Initializing Java preferences failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:UndefinedFunction
Undefined function 'usejava' for input arguments of type 'char'. > In matlabrc (line 118) Warning: Initializing MATLAB Graphics failed. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:UndefinedFunction Undefined function or variable 'ismac'. > In hgrc (line 145) In matlabrc (line 148) Warning: Failed to add default profiler filters. > In matlabrc (line 157)
Academic License
Undefined function or variable 'usejava'.
Error in matlabrc (line 187) if ~(ismcc isdeployed feature('isdmlworker')) && usejava('jvm')
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.mathworks.mlwidgets.graphics.ModelStateFactory.createNoSelectionModelState(ModelStateFactory.java:251) at com.mathworks.mlwidgets.graphics.PlotToolSetFactory$3.parseComplete(PlotToolSetFactory.java:123) at com.mathworks.mlwidgets.graphics.ModelStateFactory$ProductInfoListener$1$1.run(ModelStateFactory.java:1032) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
"
I just type "restoredefaultpath" to get rid of the trouble.
What should I do to fix this debug-not-working issue?
Thanks.

Respuestas (1)

Walter Roberson
Walter Roberson el 15 de Nov. de 2016
You will probably need to use Run as Administrator once, then restoredefaultpath then savepath

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by