Failed to connect to remote VM. Connection refused. Connection refused: connect

在使用Eclipse的遠程調試功能,啓動調試時提示以下信息:

Failed to connect to remote VM. Connection refused.
Connection refused: connect

如圖:
這裏寫圖片描述 這是因爲Tomcat還沒有啓動,或者是沒有以Debug模式啓動。