Comments (3)
Could you try to create or download the task.json file from this folder https://github.com/Rvadrabade/Debugging-OpenFOAM-with-Visual-Studio-Code/tree/master/vector/.vscode ? If you have already build the Openfoam application with wmake from terminal then comments out preLaunchTask in launch.json above as it is not needed. Also, 'program' in launch.json above points to complete path of Openfoam solver executable not a Make file/folder. I recommend you to first understand these concepts with an example illustrated in description i.e. 'vector' in the repository. Let me know if this works.
from debugging-openfoam-with-visual-studio-code.
Hello again ,
Thanks for your comment. Here are the things i did,
Its a good idea to get a hold of the terminology first. So i tried to run the native debugging features of vs code with gdb (launch) configuration for a random c++ program. It worked and i figured that you need to run the compiler to get a file a.out which then vs code reads to debug your program. This a.out file is created in your workspace folder and also the launch.json, task.json etc are created when you hit F5 and subsequently select the configuration you want. This is what i understood so far.
Then, i tried to implement this on your vector case. First of all the include files vector.H and IOstream.H are not there in the folder so the compiler was complaining. Hence i run a preexisting case i had from another tutorials folder namely, cvpiso.C . The application is compiling in the terminal but the issue still persists
in relation to this can you please give your feedback on the following
1.so, which file corresponds to a.out in the context of OF-Debug ?
2. program corresponds to target file location relative to workspace folder or (only) file name is enough ?
3. i am using as a foam extended project, so all my files are externally packaged, is this location description still valid ? {env:FOAM_USER_APPBIN}/${fileBasenameNoExtension}
also any general feedback is welcome
from debugging-openfoam-with-visual-studio-code.
I encourage to open another new issue If facing same difficulties. Closings for now.
from debugging-openfoam-with-visual-studio-code.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debugging-openfoam-with-visual-studio-code.