Giter VIP home page Giter VIP logo

debugging-openfoam-with-visual-studio-code's Issues

preLaunchTask 'wmake-build' terminated with exit code-1 & launch program <folder Path> does not exsist

Hello fellow VsCode and OF users,

I tried installing and launching the debugging tool of vs code a couple of times but am stuck here where i get the error wmake-build not found.

Here are the steps i did according to the description in this github

  1. Installed/ activated debug mode of openFOAM. Currently, i am using of240Debug.
  2. Changed launch.json, tasks.json andc_cpp_properties.json according to the restrictions and are as follows

as is understand, vs code is searching for a make file to execute but does not recognize the directory even though everything works well with terminal.

If someone understands were i should make some changes to get it running, i would be glad for your comments.

#Launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "OF-Debug",
// "name": "g++ - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "~/OpenFOAM/userName-2.4.0/SOWFA-2.4.0/src/turbineModels/turbineModelsStandard/Make",
// "program": "${fileDirname}/${fileBasenameNoExtension}",
// "args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "wmake-build",
//"preLaunchTask": "C/C++: g++ build active file",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.