Can not start Visual Studio 2022 debugger from Simulink Model
조회 수: 8 (최근 30일)
이전 댓글 표시
I'm trying to debug a small Simulink C-Funtion block with VS 2022 debugger and following the step on this webside
https://de.mathworks.com/help/simulink/ug/debug-custom-code.html
I have VS2022 installed and when I run the command:
winqueryreg('HKEY_LOCAL_MACHINE','SYSTEM\CurrentControlSet\Control\Session Manager','DebuggerMaxModuleMsgs')
I get the result:
ans =
int32
16534
So the installation of VS2022 should be correct.
Now I try to start the debuggber by clicking on the "Set Breakpoint in Custom Code" menu entry
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1454002/image.png)
And get this error message:
To use MinGW for custom code debugging, install MATLAB Coder Interface for Visual Studio Code Debugging support package.
Suggested Actions
Install MATLAB Coder Interface for Visual Studio Code Debugging support package.Open
I have installed VS2022 and this IDE don't need I support package, as far as I know.
So what is going wrong.
Thanks a lot for your help
Marco
댓글 수: 0
답변 (1개)
Ayush
2023년 8월 21일
In the documentation it is mentioned that you need to install the “MATLAB® Coder™ Interface for Visual Studio Code Debugging support package”.
Kindly install the required add-on as mentioned in the error and see if the issue persists.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!