[gmsh source code reading] Source code reading environment settings

My gmsh source code reading environment is configured with VS Code + Remote SSH. The compilation of gmsh is completed on Ubuntu Server, and VSCode reads and debugs the code on local Windows.

1. Compile gmsh on the Server and follow the README in the code warehouse:

mkdir build

cd build
cmake ..


2. Local Windows configuration Remote SSH

3. Configure the .vscode/launch.json file with the following content:

    "version": "0.2.0",
    "configurations": [
        "name": "C/C++: g++ build and debug active file",
        "type": "cppdbg",
        "request": "launch",
        "program": "${workspaceFolder}/build/gmsh",
        "args": ["../tutorials/t1.geo"],
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}/build",
        "environment": [],
        "externalConsole": false,
        "MIMode": "gdb",
        "miDebuggerPath": "/usr/bin/gdb",
        "setupCommands": [
            "description": "Enable pretty-printing for gdb",
            "text": "-enable-pretty-printing",
            "ignoreFailures": true

After completing the above configuration, you can debug locally.

Guess you like

Origin blog.csdn.net/loveoobaby/article/details/131158721