Tag Archives: Debug

Start Tomcat by debugging in eclipse and report an error

Debug Tomcat in eclipse reports an error with the following error:

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

ERROR: transport error 202: connect failed: Operation timed out

ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]

The reason for the error is that 127.0.0.1 localhost is not added to the local host configuration

 

Solution to prompt absent line number information when debugging

Programmer algorithm practice must read, common Java API skills to share>>>

unable to install breakpoint in…(file name) due to miss line number attributes. midify compliter options to generate line number attributes.

reason:

absent line number information

solution: 1: if you are debugging with ant, please add this sentence in your build.xml & lt; javac …..debug=”true”/>

2: Project – > Attribute – > Java compiler – > Class file generation – > Add line number attribute to generated class file (used by debugger) – > Tick

Project—> Properties—-> java Compiler—-> Classfile generation
select the check box below, click apply, and then click OK. If your previous check is checked, please remove the check, apply, and then open the check again. In apply, click OK at the end

It’s up to you to solve the problem