DebugBreak or other command to "break" into the debugger?

DebugBreak or other command to "break" into the debugger?

justanotherdude's picture

I found the following article:

http://software.intel.com/en-us/articles/intel-fortran-compiler-microsoft-debugging-function-debugbreak/

Unfortunately when I tried to implement this code and compiled I received the following error:

Error 1 error #7286: This symbol has multiply declared DEC$ ATTRIBUTES ALIAS attribute. [DEBUGBREAK] 176

I'm using the Intel FORTRAN compiler.

I found using the debugbreak() in C++ to be very powerful, so thank you for any insights.

As an aside, I tried to right click on my FORTRAN executable in the Windows Task Manager and select "Debug", but that also did not work. I was a little suprised, and I believe the error message was that the file could not be found or something equivalen.

Thank you again for any feedback and insights.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve Lionel (Intel)'s picture

I had not seen that article before - it needs some correction.

Just add:

USE KERNEL32

after your PROGRAM, SUBROUTINE or FUNCTION statement and then you will be able to call DebugBreak.

Steve
justanotherdude's picture
Quoting - Steve Lionel (Intel) I had not seen that article before - it needs some correction.

Just add:

USE KERNEL32

after your PROGRAM, SUBROUTINE or FUNCTION statement and then you will be able to call DebugBreak.


Steve - Thank you for the post and the insights...I tried it out and I was able to compile successfully, but when I tried to run I encountered an issue that looked similar to a Library/DLL not loading. By any chance do you know what edits I would need to make in order to include the Library/DLL that may be causing the issue? I think I'm really close, but I feel like I haven't added a dependency or something. Do you know where I would need to add the dependency in MS Visual Studio & Intel Fortran 11 in order to get it to work out?

Thanks again for any insights and feedback you are able to provide.

Steve Lionel (Intel)'s picture

Please show the complete and exact text of the error message. I can't figure out what you're referring to by your description.

Steve

Login to leave a comment.