Welcome to the community!
the answer is No, you can't debug it and it will show "error at line 0"
batter you make .vbs libraries and add using UI given by QTP which can be debug...
or if you want after debugging or fixing issues you can make it dynamic...
[ QUOTE ]
"if u want after debugging or fixing issues you can make it dynamic.."
[/ QUOTE ]
Simple, add files in associated library so QTP can debut it, Or copy vbs file content and paste it in QTP/third party editor(i use vbsedit Cheap and Best), run and debut. once error is traced fix it again and associate dynamically (executing file under QTP environment)...
This approach is used for generic functions and creating its COM, DLL or WSC objects.. these component cann't be tested and debug independently before building it.