Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7782 Discussions

Continuing problems with debugging information emitted by ICC 18 on Windows

AndrewC
New Contributor III
273 Views

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

0 Kudos
2 Replies
Viet_H_Intel
Moderator
273 Views

Hello,

Can you provide us a test case to investigate?

Regards,

Viet

AndrewC
New Contributor III
273 Views

Hi Viet,

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....

However.....good news!

Setting the linker option (VS 2017)

Generate Debug Information optimized for sharing and publishing (/DEBUG:FULL)

seems to resolve the issue.

Andrew

Reply