当前位置: 首页 > news >正文

vscode借助插件调试OpenFoam的正确的.vscode配置文件

正确的备份文件位置:

/home/jie/桌面/理解openfoam/正确的调试爆轰单进程案例/mydebugblastFoam

调试爆轰案例流体

并且工作区和用户区都是openfoam-7版本

问题:F5以debug模式启动后不停在断点

解决方法:

这里备份一下.vsode正确的配置,不然错误的配置会F5以debug模式启动后不停在断点

.vscode中的五个文件如下所示(可以正确启动调试):

{"configurations": [{"name": "Linux","includePath": ["/home/jie/myapp/OpenFOAM-7/blastfoam_2_0/src/compressibleSystem/lnInclude","/home/jie/myapp/OpenFOAM-7/blastfoam_2_0/src/timeIntegrators/lnInclude","/home/jie/myapp/OpenFOAM-7/src/OSspecific/POSIX/lnInclude","/home/jie/myapp/OpenFOAM-7/src/OpenFOAM/lnInclude","/home/jie/myapp/OpenFOAM-7/src/dynamicFvMesh/lnInclude","/home/jie/myapp/OpenFOAM-7/src/finiteVolume/lnInclude","/home/jie/myapp/OpenFOAM-7/src/meshTools/lnInclude","/home/jie/myapp/OpenFOAM-7/src/*/lnInclude","./**"],"defines": [],"compilerPath": "/usr/bin/gcc","cStandard": "gnu11","cppStandard": "gnu++14","intelliSenseMode": "gcc-x64"}],"version": 4
}
{"version": "0.2.0","configurations": [{"name": "ofextension: debug solver","type": "cppdbg","request": "launch","program": "/home/jie/OpenFOAM/jie-7/platforms/linux64GccDPInt32Opt/bin/mydebugblastFoam2","args": [ "-case", "Fluid/"],"stopAtEntry": true,"cwd": "/home/jie/桌面/2.4.0成功/true.bak/5c4_Z_change2_right3_singleProcess/","environment": [],"externalConsole": false,"MIMode": "gdb","setupCommands": [{"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true}],"preLaunchTask": "ofextension: debug solver","miDebuggerPath": "${workspaceFolder}/.vscode/of-gdb.sh"}]
}
#!/bin/bash
. /home/jie/myapp/OpenFOAM-7//etc/bashrc WM_NCOMPROCS=2; export WM_COMPILE_OPTION=Debug
/usr/bin/gdb "$@"
{"files.associations": {"blastFoam.C": "cpp"}
}
{"tasks": [{"type": "shell","label": "ofextension: build solver","command": ["cd ${workspaceFolder};","source /home/jie/myapp/OpenFOAM-7//etc/bashrc WM_NCOMPROCS=2;","wmake 2>&1 | tee log.wmake_opt"],"args": [],"options": {},"problemMatcher": [],"group": {"kind": "build","isDefault": true}},{"type": "shell","label": "ofextension: debug solver","command": ["cd ${workspaceFolder};","source /home/jie/myapp/OpenFOAM-7//etc/bashrc WM_NCOMPROCS=2; export WM_COMPILE_OPTION=Debug;","wmake 2>&1 | tee log.wmake_debug"],"args": [],"options": {},"problemMatcher": []}],"version": "2.0.0"
}

http://www.lryc.cn/news/502804.html

相关文章:

  • SpringBoot整合JWT(JSON Web Token)生成token与验证
  • 把帕拉丁需要的.rom文件转成.bin
  • Nginx 缓存那些事儿:原理、配置和最佳实践
  • vue发展史
  • 基于Java和Vue开发的校园跑腿软件校园跑腿小程序系统源码
  • MySQL(五)--- 事务
  • llm chat场景下的数据同步
  • 机器学习经典算法
  • Scala中的泛型
  • 数据分析特征标准化方法及其Python实现
  • UnityShaderLab 实现程序化形状(一)
  • 前端数据安全防护(控制台)
  • 自己玩虚拟机:vagrant,virtual box,centos
  • Frida框架HOOK RegisterNatives函数
  • [创业之路-189]:《华为战略管理法-DSTE实战体系》-2- 生存与发展的双重旋律:短期与长期、战术与战略的交响乐章
  • TDengine 部署
  • 【前端】20种 Button 样式
  • 机器人构建详解:售前售后服务客服机器人与广告生成机器人的微调数据处理方法
  • mysql的执行计划分析和索引下推以及索引长度计算
  • C#中的string操作详解-截取、分割、连接、替换等
  • Redis Cluster 分片机制
  • 论文结论:GPTs and Hallucination Why do large language models hallucinate
  • CSS在线格式化 - 加菲工具
  • 组件通信(父传子,子传父,跨组件通信)
  • JWT 令牌:原理、应用与安全考量
  • YOLOv5+pyqt5+摄像头在特定条件下进行目标检测并采集原始数据
  • 12.6深度学习_模型优化和迁移_整体流程梳理
  • TCP 和 UDP 可以使用同一个端口吗
  • 信而泰网络测试仪校准解决方案
  • Java 实现给pdf文件指定位置盖章功能