microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

Request for Adding Value Modification in Memory View #11165

Open sbobko opened 1 year ago

sbobko commented 1 year ago

Feature Request

Hello Development Team,

I am reaching out as an external developer with a feature request for VSCode. I would like to propose the addition of a value modification feature in the memory view of the IDE. Currently, clicking on a specific value in the memory view triggers a memory reading process. image

<--   C (readMemory-88): {"command":"readMemory","arguments":{"count":0,"memoryReference":"0xffffd556aaadf9e0","offset":131072},"type":"request","seq":88}
--> R (readMemory-88): {"type":"response","request_seq":88,"success":true,"command":"readMemory","body":{"address":"0xFFFFD556AAAFF9E0","unreadableBytes":0,"data":""},"seq":58782}

To improve the usability and efficiency of working with memory, I suggest implementing the functionality to directly modify and save values within the memory representation view. This capability is already available in popular IDEs like Visual Studio, especially for languages such as C/C++. Introducing this feature to VSCode would provide a significant advantage for developers working with memory-intensive applications.

If you find this proposal valuable, I am enthusiastic about contributing to the development of this feature. I kindly request your thoughts and feedback regarding the feasibility and potential impact of incorporating value modification in the memory view of VSCode.

Thank you for considering my suggestion.

Best regards, Sergey Bobko related to vscode:#187057

WardenGnaw commented 1 year ago

Thank you for your feature idea. We may not be able to implement it immediately, but we will track the community reactions to determine where this might fit into our backlog.

If this feature request is for the cppdbg debugger, it will be adding the supportsWriteMemoryRequest capability to https://github.com/microsoft/MIEngine/blob/9233ae10ea093e5e7c7bb7b4f19692e6acab4267/src/OpenDebugAD7/AD7DebugSession.cs#L1077C2-L1099C15 and implementing the request/response/functionality.

sbobko commented 1 year ago

clone https://github.com/microsoft/vscode-cpptools/issues/9536

irudkin commented 1 year ago

This would be grate to have. This plugin want someway there and helped me a lot with DPC++ kernel debugging on a CPU: https://marketplace.visualstudio.com/items?itemName=NateAGeek.memory-viewer. Unfortunately development has not progressed. Having it built in by default with the same features as you would find in Visual Studio would take C/C++ debugging to a new level on convenience.