You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,34 +21,27 @@ First on the bottom left corner, in the status bar, select the build type. Optio
21
21
- conda debug
22
22
- conda release
23
23
24
-
If you are using conda, please select one of the respective ones.
24
+
If you are using conda please select one of the respective ones.
25
25
26
-
Then press `Ctrl + P` and in the panel write `task ` (don't forget the space after task!). Finally select `Cmake: configure`, and that's it!
27
-
28
-
You will have to do this when you select a new configutation never used before. If you now select `release` you will have to configure again. If you go back to `debug` it is already configured, you dont have to launch the task.
26
+
Cmake should automatically configure the project with the selected configuration.
On the left panel go to the debug section and click the little green play button. Alternatively press `F5`. Every time you launch the executable a build is triggered, to ensure all the latest changes you made to the code are compiled in.
42
+
On the left panel go to the debug section and click the little green play button. Alternatively press `F5`. Every time you launch the debugger a build is triggered, to ensure all the latest changes you made to the code are compiled in.
48
43
49
-
The first time VSCode will ask to select some options. Just stick to `[default]` (which is the only option) and `FreeCADMain`. Don't worry you won't have to select these again.
50
-
51
-
After that you should see freecad launching and the debugger attaching to the process. If an error pops up the python debugger failed to attach (there's 30 second timeout).
44
+
You should see freecad launching and the debugger attaching to the process. If an error pops up the python debugger failed to attach (there's 30 second timeout).
52
45
Close FreeCAD and try launching it again. If it still fails try increasing the timeout located in the file `.vscode/scripts/WaitForDebugpy.py`
53
46
54
47
To debug please refer to the [documentation](https://code.visualstudio.com/docs/editor/debugging#_debug-actions) or search for a tutorial online.
@@ -59,18 +52,18 @@ To debug please refer to the [documentation](https://code.visualstudio.com/docs/
59
52
60
53
**NOTE:** Don't use the restart button. It only restarts the selected debugger, which definitely is not what you want. Instead press the stop button (which stops both debuggers) and launch again.
61
54
62
-
**NOTE:** During the build process all the python files in the source tree get copied (yes simply copied) to the build directory. You need to place breakpoints in the files inside `build/` otherwise the debugger won't pick them up. This does not apply to cpp files, with those simply place the breakpoints inside the source tree `src/`.
The IDE supports running FreeCAD tests as well. On the left panel go to the testing section and click the play button. A build takes place and then all the tests are run and results reported.
69
60
70
-
**NOTE:** This is much slower than running the `Tests_run` executable directly. The GIF above is sped up.
61
+
**NOTE:** This is much slower than running the `Tests_run` executable directly. The video above is sped up.
71
62
72
63
**NOTE:** Only c++ tests are currently integrated. Python tests are run from the `Test workbench` or with the command `FreeCAD -t 0`.
73
64
65
+
Alternatively, there are two vscode tasks that can be used to run the cpp and python tests directly.
66
+
74
67
**NOTE:** The debug tests button does not currently work. More configuration is needed to get that to work.
0 commit comments