The break point will not currently be hit. No symbols have been loaded for this document - Visual Studio 2017, Visual Studio 2013

19 visualizaciones (últimos 30 días)
Hello,
I have been facing an issue in my current project. The functionality of the model (2018a) has to be tested against hand-written C code for which I have been using S function builder
In order to debug the hand-written code, I am using MEX file by attaching to both Visual Studio 2013 and 2017 versions
I am able to attach the MATLAB process to Visual Studio but when I open the file and try to set a breakpoint, a warning is shown as “The breakpoint will not currently be hit. No symbols have been loaded for this document
The warning “No symbols have been loaded” is expected as MEX is dynamically loaded and the symbols are loaded in runtime
It is working in Visual Studio 2012 if I ignore this warning and run MATLAB model (i.e., the breakpoint is hit)
But the breakpoint is not hit in Visual Studio 2017/2013 after running the MATLAB model (ignoring the warning)
I appreciate any replies
Thanks,
Tanuja Kotha
  1 comentario
Dave Ober
Dave Ober el 4 de Mzo. de 2020
I am getting the same issue using MS Visual Studio 2017
(e.g. “The breakpoint will not currently be hit. No symbols have been loaded for this document”)
I am following the yprime.c example given in

Iniciar sesión para comentar.

Respuestas (1)

Farbod
Farbod el 3 de Jul. de 2023
Editada: Farbod el 3 de Jul. de 2023
Make sure to set the /Zi flag on the compiler flags and /DEBUG flag on the linker flags under the custom c import settings in simulink

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by