最好的开发网站有哪些,县区网站服务器机房建设,建设部网站查询注册岩土工程师,北丰科技网站建设正确的备份文件位置#xff1a;
/home/jie/桌面/理解openfoam/正确的调试爆轰单进程案例/mydebugblastFoam
调试爆轰案例流体 并且工作区和用户区都是openfoam-7版本
问题#xff1a;F5以debug模式启动后不停在断点
解决方法#xff1a;
这里备份一下.vsode正确的配置
/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: gnu14,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_NCOMPROCS2; export WM_COMPILE_OPTIONDebug
/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_NCOMPROCS2;,wmake 21 | 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_NCOMPROCS2; export WM_COMPILE_OPTIONDebug;,wmake 21 | tee log.wmake_debug],args: [],options: {},problemMatcher: []}],version: 2.0.0
}