Skip to content

Disassembly view is blank on linux #7960

@abrahammurciano

Description

@abrahammurciano

Bug type: Debugger

Describe the bug

  • OS and Version: Arch Linux 5.13.9-arch1-1
  • VS Code Version: 1.59.0
  • C/C++ Extension Version: 1.5.1
  • Desassembly view is blank for C or C++ on linux.

To Reproduce

launch.json

{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "gcc - Build and debug active file",
			"type": "cppdbg",
			"request": "launch",
			"program": "${fileDirname}/${fileBasenameNoExtension}",
			"args": [],
			"stopAtEntry": false,
			"cwd": "${fileDirname}",
			"environment": [],
			"externalConsole": false,
			"MIMode": "gdb",
			"setupCommands": [
				{
					"description": "Enable pretty-printing for gdb",
					"text": "-enable-pretty-printing",
					"ignoreFailures": true
				}
			],
			"preLaunchTask": "C/C++: gcc build active file",
			"miDebuggerPath": "/usr/bin/gdb"
		}
	]
}

tasks.json

{
    "tasks": [
        {
            "type": "cppbuild",
            "label": "C/C++: gcc build active file",
            "command": "/usr/bin/gcc",
            "args": [
                "-g",
                "${file}",
                "-o",
                "${fileDirname}/${fileBasenameNoExtension}"
            ],
            "options": {
                "cwd": "${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "Task generated by Debugger."
        }
    ],
    "version": "2.0.0"
}

My c code

#include <stdio.h>

int main() {
	int counter = 1;
	while (counter <= 5) {
		printf("%d\n", counter);
		++counter;
	}
	return 0;
}

Steps to reproduce the behavior:

  1. Open any C or C++ file.
  2. Add a breakpoint.
  3. Start the debugger.
  4. Right click anywhere in the code and click Open Disassembly View.
  5. An empty tab opens up instead of displaying the assembly code. (see screenshot)

image

Metadata

Metadata

Assignees

Labels

debuggerfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions