c++ - vs code c/c++调试卡住,只显示在调用栈中运行,不显示任何变量
问题描述
VS Code C/C++ 调试卡住了,它只显示在调用堆栈中运行并且不显示任何变量请帮助我是新手。
这是我的 launch.json 文件
"version": "0.2.0",
"configurations":
[
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/return0.exe",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false
},
]
这是我保存为 return0.c 的两个数字之和的代码
#include<stdio.h>
#include<conio.h>
int main()
{
{
int a,b,c;
printf("Enter two No.\n");
scanf("%d%d",&a,&b);
c=a+b;
printf("the sum is %d",c);
}
return 0;
}
解决方案
推荐阅读
- r - R:保留 1 行/列矩阵
- python - 在 Python 中使用 input() 作为 range() 的参数
- localhost - 如何同时在两台不同的计算机上使用 Oracle Apex 应用程序?
- javascript - 增加,减少对象中的值 - javascript
- html - 生产网站字体比本地版本大
- ajax - ASP.NET 4.5 WebMethod 在生产中返回 302 重定向,但在暂存中不返回
- r - 如何在 R 中创建一串向量名称,然后可以对其进行评估?
- r - Markdown 文件不包括绘图
- teamcity - Team City 构建失败恢复 .NET Standard
- emacs - 在 Agda emacs 中运行“Hello World”应用程序