trouble with debug using Visual Studio 2008
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm trying to debug some Fortran code, and I've followed the instructions at http://www.mathworks.com/help/techdoc/matlab_external/f32489.html#f18756 and have tried it with the yprime.c as suggested (after switching back to the C compiler, of course).
The Visual Studio hangs when I run the program. I'm using 2008 instead of 2005 but wouldn't expect this to be an issue. I'm operating 64-bit Matlab. My Visual Studio looks to be an x86 (32-bit) program, but I don't enough to know whether that is the source of the problem. I get the same problem with either the Fortran 11.1 compiler or the Microsoft Visual C++ 2010 Express compiler. Has anyone experienced a similar issue?
댓글 수: 6
Kaustubha Govind
2011년 6월 9일
This seems like it could be a Visual Studio issue. Are you able to debug other C/C++ libraries/executables without any problems on the same installation of Visual Studio? (Also, when you compile yprime.c, make sure that you select the same version of Visual Studio using "mex -setup")
Also, FYI - since your original question was about debugging FORTRAN code, note that Visual Studio can only be used to debug C/C++ code. You could follow a similar process with a FORTRAN debugger however (I'm not a FORTRAN programmer, so have no advice on what debugger to use).
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fortran with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!