c++ - Changing STL container (std::string) values in debugger - Stack Overflow
If I understand correctly, VSCode uses -var-assign
to set variables in the debugger. This doesn't work for e.g. std::string
.
A workaround is to use -exec call string_variable_name.assign("new_value")
(or string_variable_name.operator=("new_value")
) from within the VSCode debugger shell window.
Is it possible to apply this trick so that I can use the Variables window to assign values for strings (e.g. a specific configuration or an extension)?
I tried some more extensions, launch.json configurations etc. but since I'm quite new to VSCode i might also be doing something else completely wrong here (coming from vim)
See also:
最新文章
- 谷歌强推安卓8.0系统:明年所有APP都必须支持
- 软件定义网络:正在进行的网络变革
- Mac电脑与PC九大区别
- 电脑展趋势分析 移动终端大热DIY被弱化
- 英特尔公布搭载其芯片的Windows 8平板电脑的硬件配置规范
- javascript - Chrome Extension with proxy, onAuthRequired never being triggered - Stack Overflow
- open source - Langgraph State not being passed properly with Ollama - Stack Overflow
- caching - Pytorch: the cache is constantly increasing - Stack Overflow
- maven - Quarkus Live Reload in nested directories - Stack Overflow
- d3.js - d3 - graph is rendered outside the svg - Stack Overflow
- wpf - Installation of an upgrade version starting at ResumeDlg - Stack Overflow
- vue.js - single pages doesn't work when i moved them to app component - Stack Overflow
- swiftui - Swift Mocking a throwing function - Stack Overflow
- Azure monitor alert using minimum failing periods for static threshold - Stack Overflow
- node.js - Push notification not getting delivered - Stack Overflow
- javascript - How to play HLS live-stream from the end with Bitmovin player - Stack Overflow
- Spring restcontroller with RequestParam String conflcting in controller - Stack Overflow