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.
Please sign in to leave a comment.
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!
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)
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:
%LOCALAPPDATA%\JetBrains\Rider{version}\log
folder;Have a nice day!
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?
.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!
It did work, thank you.
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!