You can proceed with your normal debugging activities, but now in parallel. You should be outside of you infinite loop.ġ2º -> Perform steps 10 and 11 on your second vsCode window. After changing the value, press on Step Over (F10). Windows exe requires Microsoft Visual C++ 2010 Service Pack 1. For that, change the value of the variable myi to 1 on the variables -> locals bar (located on the left side of the Run and Debug tab. Remember youtube-dl requires Python version 2.6, 2.7, or 3.2+ to work except for Windows exe. An error message will appear, just press Step Out (Shift + F11) 2 or 3 times and you will be located in your infinite loop.ġ1º -> Now, you will need to leave the infinite loop. In your first window, press the Pause (F6) button in the debugger. Type y.ĩº -> Perform steps 7 and 8 and choose the second process for the second window.ġ0 -> Now you are inside the solver. It will ask you if you want to attach the debugger to the process. On the top left corner click on Start Debugging (green play button).Ĩº -> After clicking on Start Debugging, look for your solver name, in this case We will be using both for setting a debugger into processor0 and processor1.ħº -> On your first vsCode window, open your mySolverFoam.C file and go to the Run and Debug tab (control + shift + D). and type Workspaces: Duplicate As Workspace in New Window. Debugging OpenFOAM® with Visual Studio Code - CFD Online Discussion ForumsĬode: decomposePar & mpirun -np 2 mySolverFoam -parallel 6º -> In vsCode, go to view -> Command Palette.
0 Comments
Leave a Reply. |