I want to debug some python code of my workbench.When I debug directly, I get an error. Obviously FreeCAD is not a python package So, I went to the wiki for help and I followed this page
Debugging
https://wiki.freecadweb.org/Debugging#Python_Debugging
https://code.visualstudio.com/docs/pyth ... igurations
I must first click "Run Python File" and then click "Python :Attacher" debug button,If I click directly on the "Python :Attacher" debug button I get an error I try to debug " FreeCAD.exe" using "Attach using Process ID".But the left variable in VScode is nothing ,and "step over" "step into"
"step out" button doesn't work. When I open FreeCAD.exe ,it pops up a dialog reminding me of this
Code: Select all
unrecognised option '--for-server'
Allowed options:
Generic options:
-v[--ver3ion】Prints version string
.......
Currently,I'm doing workbench development on wiki.freecadweb.org/Download, the full installer.I don't know if this is the correct way to develop.
I have compiled "FreeCAD.sln "(This should not be what I want, I don't need to change the FreeCAD source code).
There is also a debug version of "FreeCAD_d.exe".
Or maybe I should use VS Community instead of VS code.
What should I do, could you help me?Thanks in advance.
https://forum.freecadweb.org/viewtopic.php?f=15&t=50917
https://forum.freecadweb.org/viewtopic. ... de#p468327
https://forum.freecadweb.org/viewtopic.php?f=10&t=35383
https://forum.freecadweb.org/viewtopic. ... de#p497581
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +148 (Git)
Build type: Release
Branch: Branch_0.19.4
Hash: 476ecf091941bead59b14e44afa6064d5a66afa3
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3