How to debug Java code when using ANT script in Eclipse

后端 未结 8 1907
南笙
南笙 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 13:00

    set ANT_OPTS=%ANT_OPTS% -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5432
    

    in Eclipse

    Toolbar >> Run >> Debug Configurations >> + >> 
    

    Give the values:

    Name: Debug_Ant
    Project: active-eclipse-project
    Host:localhost
    Port:5432
    

提交回复
热议问题