Eclipse Mac OS X Debug Error: “FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)”

前端 未结 2 1080
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 09:17
ERROR: transport error 202: gethostbyname: unknown host
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPO         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-05 09:51

    I had exactly the same issue (on OSX), in my case the line in /etc/hosts was commented out:

    127.0.0.1    localhost
    

    It's explained in Eclipse Wiki: https://wiki.eclipse.org/Debug/FAQ#I_can_run_a_program_but_not_debug_it.3F.3F.3F

提交回复
热议问题