Skip to content

DebuggingwithVSCode

fernanqv edited this page Jul 1, 2022 · 1 revision

Debug WRF4G with VSCode

The easiest way to debug and modify WRF4G source code with VSCode is installing WRF4G in development mode:

git clone https://github.com/SantanderMetGroup/WRF4G.git
cd WRF4G
pip install -e .

Make sure you have VSCode installed in your computer. If not, install it from https://code.visualstudio.com/Download

In order to debug WRF4G, you have to open the folder where WRF4G has been downloaded with VSCode. WRF4G source code provides some debugging examples that can be tested from the Run & Debug. You can select the configuration you need and run it.

Debug configuration can be viewed and modified from WRF4G/.vscode/launch.json

Clone this wiki locally