View Single Post
  #3   Spotlight this post!  
Unread 13-01-2011, 21:11
blakeelias's Avatar
blakeelias blakeelias is offline
2011 CT chairman's award
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: New York
Posts: 26
blakeelias is an unknown quantity at this point
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?
Reply With Quote