Trying to run ANT JUnit target in debug mode in Eclipse

前端 未结 2 1820
离开以前
离开以前 2021-02-04 11:49

Here is my ANT JUnit target


    

        

        
2条回答
  •  难免孤独
    2021-02-04 12:28

    Detailed instructions:

    1. In Eclipse, navigate to Run | Debug.
    2. Select Remote Java Application, on the left column. Click New, on the bottom of the same column.
    3. In the Create configuration screen you'll be prompted to enter some values. Start with a meaningful name. For Project, select the Java project that contains the source code you want to debug. Leave Connection Type in default, i.e. Standard (Socket Attach) . For Host , enter localhost. If you want to debug a remote server, enter its hostname or IP address. For port, enter 5432.
    4. Click Apply.
    5. Make sure your tests is running in debug mode. In the same screen click Debug . Eclipse should automatically take you to the Debug perspective and you should see a stack trace in the Debug view.
    6. If you are not automatically taken to the Debug perspective, select Window | Open Perspective | Other and then click Debug.

    Taken from here.

提交回复
热议问题