What should I do to fix this debug-not-working issue?
조회 수: 10 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 11월 15일
You will probably need to use Run as Administrator once, then restoredefaultpath then savepath
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!