launch: program ‘c: \build\Debug\outDebug‘ does not exist

这篇具有很好参考价值的文章主要介绍了launch: program ‘c: \build\Debug\outDebug‘ does not exist。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

本想着用VS Code 编写编译C语言程序,顺着网上的教程一步步操作,后来却遇到 launch: program ‘c: \build\Debug\outDebug’ does not exist 这样的一个提示框,怎么改launch.json文件都不行,后来看到网上的文章:

链接: VScode找不到任务c/c++:g++.exe生成活动文件
自己操作了一下,运行.c文件成功了。下面来看看具体操作。
1.打开一个VS Code窗口。launch: program ‘c: \build\Debug\outDebug‘ does not exist
2.选择“文件(F)->打开文件夹…”
launch: program ‘c: \build\Debug\outDebug‘ does not exist
这里可以选一个位置,然后新建一个文件夹,我这里选择位置是桌面,文件夹名为b。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
点击“选择文件夹”。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
VS Code里面生成了一个名为B的文件夹。
将鼠标放到B上点一下,可以看到,B的右边出现了几个图标。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
分别是:新建文件 新建文件夹 刷新资源管理器 在资源管理器中折叠文件夹
我们点 “新建文件”,点击后输入文件名及扩展名,这里我输入的是b.c
launch: program ‘c: \build\Debug\outDebug‘ does not exist
3.双击b.c,打开,然后输入代码。保存。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
4.按 F5 ,选择 C++(GDB/LLDB)
launch: program ‘c: \build\Debug\outDebug‘ does not exist
选择 C/C++: gcc.exe 生成…
launch: program ‘c: \build\Debug\outDebug‘ does not exist
5.一段闪烁之后,输出了 Hello World!
launch: program ‘c: \build\Debug\outDebug‘ does not exist
6.如果代码更改了,需要重新运行,可以点击右上角三角形旁边的下箭头,点击出现的Run Code,就可以再次运行程序了。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
7.修改程序后运行的结果
launch: program ‘c: \build\Debug\outDebug‘ does not exist
8.或者将鼠标放置到代码上,右键单击,在出现的菜单里选择Run Code选项,也能够重新运行代码。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
9.注意:如果.c文件名是中文,可能会不成功。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
一直报错。

分割线
继续更新…
1.如果程序需要一些输入,该怎么办呢?
可以看看这篇文章:vscode如何运行c语言,scanf输入
操作步骤:
选择 文件(F) -> 首选项 ->设置,在搜索中输入RunInTerminal并勾选
launch: program ‘c: \build\Debug\outDebug‘ does not exist
launch: program ‘c: \build\Debug\outDebug‘ does not exist
2.打开launch.json文件,externalConsoleg改为true,没有这一项就自己添加进去。
PS:我的launch.json文件不见了,所以这一步无图。
3.运行后发现能够输入,但是中文部分是乱码
launch: program ‘c: \build\Debug\outDebug‘ does not exist
4.点击右下角“UTF-8”处,然后选择“通过编码重新打开”
launch: program ‘c: \build\Debug\outDebug‘ does not exist
5.在新选项中选择“Simplified Chinese (GBK) gbk”这一项。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
6.此时右下角编码格式变成了GBK,同时可以看到代码中的中文字符变成了乱码。
launch: program ‘c: \build\Debug\outDebug‘ does not exist
7.我们按下ctrl+z就恢复回来了,然后保存,运行,OK。

launch: program ‘c: \build\Debug\outDebug‘ does not exist

接着更新:20230331
如何在VS code中编译多个.c文件?

如何实现C/C++与Python混编?

C语言里面如何输入EOF?
答:按ctrl+z就行了文章来源地址https://www.toymoban.com/news/detail-414108.html

到了这里,关于launch: program ‘c: \build\Debug\outDebug‘ does not exist的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • VS_Code运行中出现launch:program ... does not exist的解决办法

    问题描述:   问题原因: 包含了多个CPP文件 由于VSCODE实际上是一个文本编辑器,不是一个IDE,它不会自动链接项目通过头文件引用的.c文件。要解决这个问题,就要告诉编译器需要链接哪些文件。 解决方法: 1.找到工程所在文件夹中,找到tasks.json,找到\\\"args\\\"属性,在其中

    2024年02月11日
    浏览(34)
  • vscode配置c语言环境以及launch:program“*****.exe” does not exist问题(保姆级检查)

    下载编辑器VScode 官网:https://code.visualstudio.com/ 下载编译器MinGW并解压 下载页面:https://sourceforge.net/projects/mingw-w64/files/ 下载页面中选择 x86_64-win32-seh 下载 将MinGW添加至环境变量 进入mingw64下的bin文件夹,复制当前路径,Win + i唤起系统设置,输入高级系统设置并进入,点击环境

    2024年02月02日
    浏览(34)
  • vscode配置C/C++ 时报错,launch program does not exist | 无法检测到头文件:检测到 #include 错误。请更新 includePath。|解决方法

    运行报错: 安装好VScode后出现了头文件无法读到的问题,后面发现很多东西都没安装好,正好根据这个机会学习一下C++这门语言的构造。 首先,我查到的原因之一是我没有下MinGW。 MinGW介绍如下:MinGW是一个Windows平台上的C/C++编程环境,它提供了一组GNU工具和库,包括GCC编译

    2024年02月13日
    浏览(30)
  • compile_and_runtime_not_namespaced_r_class_jar\debug\R.jar: 另一个程序正在使用

    run App的时候,提示该文件被占用 想要clean Project,还是提示该文件被占用,这个文件和连带的文件夹都无法被删除。 AndroidStudio下方的terminal(没有这个窗口的话,从上面的view-tool Winndow-terminal打开) 执行taskkill /im java.exe /f 关闭Android Studio,手动找到这个文件夹,删除该文件。

    2024年02月13日
    浏览(41)
  • Unity Build时Unity 出现error CS0103: The name ‘AssetDatabase‘ does not exist in the current context

    当对unity进行build操作,报了好几条错误 解决方法如下:打开代码提示的代码文件 registerandload,找到使用AssetDatabase的那行, 用下面这两行代码包裹报错的那行代码。 调整结果如下所示: 这样问题就解决了

    2024年02月13日
    浏览(33)
  • Exception: D:\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!

    问题出现于Unity 2019.4 Windows il2cpp build  问题描述:  原因:由于安装的Window SDK在之前卸载时并未清空注册表中的信息所以再通过注册表信息索引Windows SDK时就会找不到被卸载的SDK。(具体问题描述:Bug - IL2CPP build problem - Unity Forum) 解决: 根据Debug中的提示找到注册表中的条

    2024年02月15日
    浏览(35)
  • vscode debug 配置:launch.json

    打开新项目左边的“运行和调试” 点击蓝色字体“创建 launch.json 文件” 选择上方“python” 选择“Python 文件 调试当前正在运行的Python文件” 配置 launch.json 文件内容: \\\"justMyCode\\\": true debug时只进入项目自带文件,不进入安装的包文件 \\\"env\\\": {\\\"PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT\\\": \\\"2\\\"} 多长

    2024年04月14日
    浏览(27)
  • pycharm 远程连接服务器并且debug, 支持torch.distributed.launch debug

    未经允许,本文不得转载,vx:837007389 https://www.jetbrains.com/pycharm/download/other.html 首先,你需要有个专业版本的pycharm。什么ji huo 码可以私我,或者样例可以看这里链接。 https://www.cnblogs.com/yanghailin/p/17577621.html 略 我现在代码在远程服务器上。所以需要把远程服务器代码和我本地

    2024年02月14日
    浏览(33)
  • vscode debug python launch.json添加args不起作用

    为了带入参数调试python 程序,按照网上搜到的教程配置了lauch.json文件,文件中添加了\\\"args\\\": [“model” “0” “path”] 但是点击debug按钮,并没有读取到launch文件中的args参数,python中打印len(sys.argv)依然等于1。 参考:vscode-python 中的 issues vscode-doc: Python debugging in VS Code 简单来说

    2024年02月09日
    浏览(38)
  • vscode调试debug,launch.json文件‘args’无法发传递给脚本

    launch.json中的\\\"name\\\"参数不要随便起,要与执行的文件名一致! 参考链接:注意看链接帖子的评论

    2024年01月18日
    浏览(47)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包