How can I view the element contents of an array in debug mode in Rider?

My Rider is version 2023.3.3. This happens not only in std::vector, but also in TArray, and I can't debug the specific elements.

std::vector<std::vector<int>> heightMap(width, std::vector<int>(height));

In debug mode, I can only get the following view, I can't see the specific internal elements.

Please tell me what to do. Thank you very much.

0
7 comments
Hello,

Thank you for contacting Rider support. It seems the .natvis renderers are not loaded.

First of all, I suggest checking if this option enabled: Settings | Build, Execution, Deployment | Debugger | Data Views | C/C++ | Variables | Enable NatVis renderers for LLDB.

It is is enabled, verify if you have stl.natvis file under C:/Program Files/Microsoft Visual Studio/2022/{release}/Common7/Packages/Debugger/Visualizers.

If file present and the mentioned settings is enabled, please share Rider logs:
- Enable the Debugger trace scenario in Help | Diagnostic Tools | Choose Trace Scenarios;
- Restart Rider and reproduce the issue;
- Collect logs via Help | Collect Logs and Diagnostic Data;
- Disable the trace scenario enabled;
- Upload logs bundle to the Upload Service (https://uploads.jetbrains.com/) and let me know the Upload ID.

Have a nice day!
0

Hi, I've followed your instructions carefully and the phenomenon persists, so I've submitted the log.

Upload id: 2024_06_14_FA2rQKsqFxDJ4n655R5HG7 (file: rider-logs-20240614-21323213414178287531098564.zip)

 

 

0

Hello, 

Thank you for the logs shared.

Please check, if setting the Settings | Build, Execution, Deployment | Toolset and Build | MSBuild version to the one in C:\Program Files\Microsoft Visual Studio\2022\<edition>\MSBuild\Current\Bin\msbuild.exe and check if that helps.

If that doesn't help, please recollect the logs one more time:

  • Close Rider;
  • Clear everything from the %LOCALAPPDATA%\JetBrains\Rider{version}\log folder;
  • Launch Rider;
  • Enable the Debugger trace scenario;
  • Reproduce the issue;
  • Collect logs via Help | Collect Logs and Diagnostic Data;
  • Upload new archive and let me know the Upload ID.

Have a nice day!

 

 

0

Sorry, I don't know which one I should use. By the way another thing, I'm using “.uproject” to open the rider, not “.sln”, does that have any effect?

0
Hello,

.sln or .uproject shouldn't make effect here.
Try selecting C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild.Current/Bin/MSBuild.exe. Then rebuilt the project and check if that helps.

Have a nice day!
0

It did work, thank you.

0
Hello,

Thank you for keeping me posted! I am glad to hear that I was able to help.
If there are no other questions, then I am going to proceed with archiving this ticket.
Should you have any other questions or difficulties in the future, do not hesitate to contact support.

Have a nice day!
0

Please sign in to leave a comment.