How to debug Java code when using ANT script in Eclipse

后端 未结 8 1906
南笙
南笙 2020-12-04 12:43

I have a java class and I need to debug it (put breakpoints and continue using F6). I am using ANT script to init, build, deploy and run the code. I am using:



        
8条回答
  •  春和景丽
    2020-12-04 12:58

    I too faced this problem, I did following steps to resolve.

    1. Put the below lines in ANT file

    2. Go to the debugging configurations->Remote java application-> Create new configuration file with project name,port=5432 and host is localhost and save it.

    3. Now run your build.xml using debugging mode, then you should see in console that "Listening for transport dt_socket at address 5432"

    4. Now run debug configuration file which is you configured. Now your selenium code will run using Debug mode.

    Hope this helps.

    If you still facing issues, please let me know so that i can help you on that.

    Thanks

提交回复
热议问题