其实解决这个问题最有效的方法就安装插件:简单,直接。但是如果你不想安装太多的插件到eclipse中或者你调试使用的tomcat和eclipse不在同一机器上的话,就要使用eclipse的remote debug直接进行调试,具体配置步骤如下: 1. 设置tomcat的运行环境: 打开startup.bat文件,找到行 call " %EXECUTABLE% " start %CMD_LINE_ARGS% 在之前加入下面的设置: SET CATALINA_OPTS = -server -Xdebug -Xnoagent -Djava.compiler =...
by tkinwa - Java文档中心 - 2009-04-25 14:31:18 阅读(1097) 回复(0)
eclipse调试步骤: 1:兴建工程 2:点击工具条Debug进入调试模式 3:在程序中设置断点 4:启动server,在断点出dump 5:下面便可以进行步进等调试操作 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/25102/showart_192938.html
在做远程调试时,在windows系统和非windows系统下的配置,Tomcat中会有所差别,具体如下: 第一步、配置tomcat 一、在windows系统中: 打开%CATALINE_HOME%/bin下的文件catalina.bat,加入下面这行: set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787 其中address=8787是没被使用的端口号。连接方式有两种,为dt_shmem和dt_socket,分别表示...
没有用过eclipse,今天初用,环境: PHP 5.1.2 + xdebug + eclipse 3.3.1.1 php.ini [Xdebug] zend_extension_ts="D:\php51\ext\php_xdebug.dll" xdebug_remote_host = "127.0.0.1" xdebug.remote_port = 9000 可是当我Open debug dialog后, Sever Debug:XDebug PHP Server:Default PHP web SERVER File:/bakesale/index.php 选择:Break at First Line 我选择debug后,就是不能运行到断点,不知何故!
eclipse下目前有几种PHP插件,但是最好的一种肯定是eclipse官方的PDT,其网页在: http://www.eclipse.org/pdt/ 通过在线更新安装Zend的调试器 网址 http://downloads.zend.com/pdt/ 最方便的下载就是下载AllinOne这样的东西,这里给个连接,包含了Zend的调试器的AllInOne: http://downloads.zend.com/pdt/ wamp是大家研究apache/mysql/php/perl 的首选,安装配置非常方便,可以从这里下载最新的Windows版本 http://www.wampserv...
我在eclipse下调试JPetstore项目。启动TOMCAT后,输出如下错误: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/web-INF/dataAccessContext-local.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.orm.ibatis.SqlMa...
我在使用eclipse 3M5 + com.sysdeo.eclipse.tomcat_2.2.1 + tomcat4.0.6调试serlvet时碰到一怪异的问题: 在eclipse中启动tomcat,通过浏览器访问eclipse中的project中的serlvet,没问题,一切正常。但如果在serlvet的source 上加了断点,再次访问该servlet时eclipse的debug窗口却报“Source not found for ... servlet(行号)”而无法看到source code,程序也停在了我加断点的那一行,如果此时我点击“继续执行”的button,则程序...