Unable to debug in Java with eclipse

后端 未结 11 1162
情话喂你
情话喂你 2020-12-03 06:55

I am trying to debug a simple Java application on my machine using Eclipse as an IDE. When I try to debug the application by entering the Debug Perspective, I set a breakpoi

11条回答
  •  鱼传尺愫
    2020-12-03 07:55

    I was getting the same error on my ubuntu machine because of a mishap with the /etc/hosts file. I had commented out the mapping of localhost to 127.0.0.1, and to complicate matters further there was a swap file hanging around.

    This was the first line of my /etc/hosts:

    127.0.0.1       #localhost
    

    Deleting the # fixed the problem, whereas rebooting understandably had not.

提交回复
热议问题