how to set debug mode

Hi All,
Am working as a developer, And currently I have been moved to a support and enhancement project. The problem am facing is here am not able to set the debug mode for my application.

About my application I will be getting request xml from two independent systems and in my project I have a servlet and the request hits this servlet and some basic xml validation are happening in this modoule and apart from this I have four other individual modules where all the business logic are done here the problem is apart from the first module rest all are running as windows batch file. If its a web application I can easily debug the application in a normal way. Since rest of the modules are running as batch file am not able to debug it. Could you please tell me how can I debug the windows batch file.