When debugging python, a Pause ( F6) operation will occur when the next Python code is executed. Be sure to select the correct context for the action you wish to execute. In the floating debug bar, the context will be a drop-down box on the right. When launching from within VS Code and then debugging Python, you will end up with two debug contexts. In VS Code's Run and Debug page, select the Python: Remote Attach configuration. Select the tab VS Code and click the OK button. In FreeCAD's menu select Macro-> Attach to remote debugger. Launch FreeCAD with either Start Debugging ( F5) or Run Without Debugging ( Ctrl-F5) One thing to note is that when one runs the Pause ( F6) operation, there may be considerable delay before the debugger halts execution to permit inspection.įreeCAD has integrated functionality to connect to a remote python debugger using the ptvsd tooling present within Visual Studio Code. The C++ debug configuration proves useful for developing the core FreeCAD application as well as workbenches that may rely upon C++ libraries.Īll debugging functionality including breakpoints, variable inspection, register inspection, watch expressions, and call stack investigation are fully operational.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |