-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
debuggerfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.
Milestone
Description
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:
- Open any C or C++ file.
- Add a breakpoint.
- Start the debugger.
- Right click anywhere in the code and click Open Disassembly View.
- An empty tab opens up instead of displaying the assembly code. (see screenshot)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
debuggerfixedCheck the Milestone for the release in which the fix is or will be available.Check the Milestone for the release in which the fix is or will be available.
