将调试器步骤的结果显示为内联文本
Display a result of debugger's step as an inline text
对于我的调试器扩展,我想实现下图中的一个功能,其中一个步骤可以要求调试器客户端显示带有该步骤结果的内联文本。
我已经通读了 DAP 文档,但仍然不知道如何实施,或者是否有可能实施。我必须执行什么请求或事件?
请问debbuger client这个函数是怎么调用的?
使用 vscode v1.54,参见 Inline value provider
Today the Show Inline Values feature of VS Code's debugger is based on
a generic implementation in VS Code core, and doesn't provide
customizability through settings or extensibility via extensions. As a
consequence, it is not a perfect fit for all languages and sometimes
shows incorrect values because it doesn't understand the underlying
source language. For this reason, we are working on an extension API
that allows to replace the built-in implementation completely or to
replace parts of the implementation with custom code.
In this milestone we've made a first implementation of the proposed
API available.
开头还有更多内容 link,包括示例代码。所以 vscode 正在为内联值添加一个真正的 API 而不是依赖于 Decorations
了。
对于我的调试器扩展,我想实现下图中的一个功能,其中一个步骤可以要求调试器客户端显示带有该步骤结果的内联文本。
我已经通读了 DAP 文档,但仍然不知道如何实施,或者是否有可能实施。我必须执行什么请求或事件?
请问debbuger client这个函数是怎么调用的?
使用 vscode v1.54,参见 Inline value provider
Today the Show Inline Values feature of VS Code's debugger is based on a generic implementation in VS Code core, and doesn't provide customizability through settings or extensibility via extensions. As a consequence, it is not a perfect fit for all languages and sometimes shows incorrect values because it doesn't understand the underlying source language. For this reason, we are working on an extension API that allows to replace the built-in implementation completely or to replace parts of the implementation with custom code.
In this milestone we've made a first implementation of the proposed API available.
开头还有更多内容 link,包括示例代码。所以 vscode 正在为内联值添加一个真正的 API 而不是依赖于 Decorations
了。