Android OS2.2 used to have an option under Settings/Applications/Development to disable screen lock during USB debugging. After upgrading my Samsung Galaxy S to OS2.3.3 this
You can just set the Screen Timeout to 30 minutes or turn it off. This option is under : Settings/Display/Screen Timeout
Hope it helps.