最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - VSCode extension "Open Disassembly View" not showing up - Stack Overflow

programmeradmin0浏览0评论

I'm trying to get the disassembly view working on a VSCode debug adapter, but it's not working. It's setting cap.supportsDisassembleRequest = true at initialization, and the stack frames it's returning have instructionPointerReference set. The "Open Disassembly View" context menu doesn't show up in the editor or when right-clicking the stack frame.

I'm trying to get the disassembly view working on a VSCode debug adapter, but it's not working. It's setting cap.supportsDisassembleRequest = true at initialization, and the stack frames it's returning have instructionPointerReference set. The "Open Disassembly View" context menu doesn't show up in the editor or when right-clicking the stack frame.

Share Improve this question edited Mar 4 at 15:35 rioV8 29.1k4 gold badges42 silver badges61 bronze badges asked Mar 3 at 19:40 TimKTimK 7,79712 gold badges42 silver badges47 bronze badges 1
  • What extension? Dissassembling what? What language/technology/toolchain you are using? – Sergey A Kryukov Commented Mar 3 at 20:25
Add a comment  | 

1 Answer 1

Reset to default 0

It turns out that only supportsDisassembleRequest matters for making the menu item appear. The problem was a bug in Microsoft's Java Debug Server.

The JSON for the initialize response was double-nesting the body:

{
  "success": true,
  "request_seq": 1,
  "command": "initialize",
  "body": {
    "body": {
      "supportsReadMemoryRequest": true,
      ...

Instead of setting the response body to an InitializeResponseBody, I had to set it directly to the Capabilities object to avoid the nesting.

发布评论

评论列表(0)

  1. 暂无评论