There have been many ongoing issues with debugging information emitted by ICC on Windows - typically the issue is that no data is visible for variables or 'this' when you stop in the Visual Studio 2017 debugger - I am compiling with optimization off for debugging, of course and with /Zi
The latest 2018 Update 1 still has problems. For example, I am stepping though some C++ code right now and the debugger cannot see any variables belonging to "this", yet can see passed in parameters. Its very frustrating to have to revert to print statements to do debugging!
I do not have the Edit and Continue option on. Linker option is /DEBUG
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Parallel Computing
It only shows up in some complex code with nested classes. A reproducer could not be created. Typically the "this" pointer becomes opaque with no visible data....
Setting the linker option (VS 2017)
Generate Debug Information optimized for sharing and publishing (/DEBUG:FULL)
seems to resolve the issue.