web application sitting on a server box, there's a batch process running in the background being managed by a single Java class - this in turns spawns multiple threads that monitors different things. I need to debug this class.
The class is started by running a script, which will first try to stop any running background processes, if any exisst, it'll stop it, once done, it'll just start it up.
PROBLEM: -------- I want to start this class (call it BatchMain) in such a way so that I can debug it remotely from my workstation.
Currently I tried the following parameter (in the script):
AND it won't even start class. (If it did, it will be registered as a system process, and I will be able to grab it via ps -ef)
In this case it would be good to see the concole output of the prog, perhaps the port (8888) was busy or some other (unknown) problem. On a unix box add something like '> /tmp/debug.out' or similar to have it to a file.
In general your args are ok, if you want to see what happens form scratch consider suspend=y to have a breakpoint at top of main().
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads: