Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
586 Discussions

VSCode extn extension 'GDB with GPU Debug Support for Intel oneAPI Toolkit' breaks debugging

Illya
Novice
895 Views

OS: Ubuntu 20.04.5 LTS 64bit

Platform: Latitude 7320, 16Gb RAM, Intel i71185G7, GPU Mesa Intel Xe TGLGt2

Visual Studio Code: 1.71.2

Visual Studio Code extensions: Microsoft C/C++ pack, all Intel oneAPI extension except 'GDB with GPU Debug Support for Intel® oneAPI Toolkits'

Intel oneAPI toolkits: Base + necessary prerequisites given in the setup instructions

Context: Using an Intel oneAPI code example simple-add, a project is setup to build the two code samples buffers and usm. Using the DPC++ compiler to build debug executables (-O0 optimisation), they work and execute as expected. Set up debug session (see launch.json below), the debug sessions using gdb-oneapi can step over or into lines of code in the DPC++ sample using the Visual Studio Code debug panel.

The problem in brief: Install extension ''GDB with GPU Debug Support for Intel® oneAPI Toolkits' causes any debug session using either gcc+gdb for normal C++ code or DPC++ +gdb-oneAPI for Dpc++ code to break with the error "Stopping due to fatal error: ProtocolException: Cannot evaluate expression on the specified stack frame.". Uninstall the extension and back to being able to debug successfully again.

Is the extension broken or do I need a missing prerequisite?

0 Kudos
4 Replies
Illya
Novice
885 Views

.

0 Kudos
HemanthCH_Intel
Moderator
871 Views

Hi,


Thanks for posting in Intel Communities.


Could you please provide the below information to investigate more on your issue:

1) Steps to reproduce your issue.

2) Screenshot of the error.

3)Please provide the hardware details on which you are running the program.

4)Please provide the dpcpp version you are using.


Thanks & Regards,

Hemanth


0 Kudos
HemanthCH_Intel
Moderator
792 Views

Hi,


We haven't heard back from you, could you please provide the above-requested details?


Thanks & Regards,

Hemanth


0 Kudos
HemanthCH_Intel
Moderator
696 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks & Regards,

Hemanth


0 Kudos
Reply