|
Re: Winpdb Remote Debugger ported to RobotPy
Speaking of debugging, have you found a way to compile and check your scripts *before* running on the robot?
In Java NetBeans would compile our code locally and show where we had syntax errors or improper API calls, but with Python we don't find this out until runtime. This makes it hard to work on code when there is no robot access, since someone's usually working on it mechanically.
So far I can check syntax with:
python3.1 -c "import py_compile; py_compile.compile('robot.py')"
However that does not seem to catch many of the problems we'll run into, like misspelling function names and other common errors.
Any ideas?
|