I am in a trouble that is I want to add a breakpoint in my java program in Intellij Idea, however, the program is start from cmd in a batch job.
java -jar XXX.jar
All the libraries path are also set in the batch job to specify the classpath. If I debug the program directly in intellij idea, it said I miss some libraries dependencies, But I can stop the program at the breakpoint I set. If I start program using batch job. The program can successfully run but It won't stop at the breakpoint.
The reason I would to stop the program is that I want to see the details about my database connection, or there is any ways or methods to extract the details of the connection?
Thanks a lot.