由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 想起几年前Re: run servlet from command line?
相关主题
Re: 想起几年前Re: run servlet from command liJSP/SERVLET里面如何实现弹出窗口(新短信)功能
run servlet from command line?请问哪位知道如何用Eclipse编译调试Glassfish么
JCreator如何调试程序?菜鸟问题一问
Re: Why are all java IDEs written in javQuestion about Tomcat
eclipse 气死我了!大家愿意讨论一下log4j么
jBuiler 4白皮书(来自inprise网站)如何动态改变log4j的log level啊
Please Help!Log4j expert
JB JAVA Bean,SERVLET位置一问Interesting: LimpidLog
相关话题的讨论汇总
话题: servlet话题: debug话题: log4j话题: command话题: ide
进入Java版参与讨论
1 (共1页)
d********r
发帖数: 199
1
想起几年以前的糗事:
几年前servlet技术刚出来的时候我就开始用了,但还不会在线调试。
写好code编译后在服务器上跑,靠写log文件进行debug,那叫一个累啊。
后来发现可以在JBuilder里run一个Java Web Server,
通过配置让servlet在Java Web Server里运行,(相当于自己配了一个container)
这样就实现了在IDE环境里调试,那叫一个爽啊。
真后悔没早点引进这个“先进技术”。
而且那时还没有log4j,code里无数的 log语句,简直惨不忍睹。
现在回想起来不堪回首啊。

依赖别的实现,要运行需要container提供环境。启动container当然可以通过command
run
r***l
发帖数: 67
2
believe not not, a lot of developers are still doing the same.
No IDE and relying on log4j to debug.

【在 d********r 的大作中提到】
: 想起几年以前的糗事:
: 几年前servlet技术刚出来的时候我就开始用了,但还不会在线调试。
: 写好code编译后在服务器上跑,靠写log文件进行debug,那叫一个累啊。
: 后来发现可以在JBuilder里run一个Java Web Server,
: 通过配置让servlet在Java Web Server里运行,(相当于自己配了一个container)
: 这样就实现了在IDE环境里调试,那叫一个爽啊。
: 真后悔没早点引进这个“先进技术”。
: 而且那时还没有log4j,code里无数的 log语句,简直惨不忍睹。
: 现在回想起来不堪回首啊。
:

w*******g
发帖数: 9932
3
or use Aspect J to insert logging code.

【在 r***l 的大作中提到】
: believe not not, a lot of developers are still doing the same.
: No IDE and relying on log4j to debug.

m******t
发帖数: 2416
4

I still do. There are so many scenarios that simply won't happen
when you are stepping through the code.
Also I think it promotes proactive logging, which is very helpful
when it gets to post-release maintenance.

【在 r***l 的大作中提到】
: believe not not, a lot of developers are still doing the same.
: No IDE and relying on log4j to debug.

w*r
发帖数: 2421
5
hehe.. the first time I use Jbuilder to debug my web app, I felt it is soo
sooo cool, now, I still use that debug time by time, however, assert
is much more likely to bse used for a lot of multi-thread component
debug.

【在 d********r 的大作中提到】
: 想起几年以前的糗事:
: 几年前servlet技术刚出来的时候我就开始用了,但还不会在线调试。
: 写好code编译后在服务器上跑,靠写log文件进行debug,那叫一个累啊。
: 后来发现可以在JBuilder里run一个Java Web Server,
: 通过配置让servlet在Java Web Server里运行,(相当于自己配了一个container)
: 这样就实现了在IDE环境里调试,那叫一个爽啊。
: 真后悔没早点引进这个“先进技术”。
: 而且那时还没有log4j,code里无数的 log语句,简直惨不忍睹。
: 现在回想起来不堪回首啊。
:

h**j
发帖数: 2033
6
it's not bad

【在 r***l 的大作中提到】
: believe not not, a lot of developers are still doing the same.
: No IDE and relying on log4j to debug.

r***l
发帖数: 67
7
Agree.
Regardless of the ability of modern IDE, loginer message is very important.
Some developers even remove logging messages from their code after they think
the code is bug free. Very interesting and wrong behavior. lol

【在 m******t 的大作中提到】
:
: I still do. There are so many scenarios that simply won't happen
: when you are stepping through the code.
: Also I think it promotes proactive logging, which is very helpful
: when it gets to post-release maintenance.

d********r
发帖数: 199
8
remove logging messages
绝对不是一个好习惯。
log4j做得就已经很好了。
如果更进一步的话可以设一个全局变量:debug
在每一个需要写log的地方:
if (debug)
logger.debug(.........)
这样就足够好了。

think

【在 r***l 的大作中提到】
: Agree.
: Regardless of the ability of modern IDE, loginer message is very important.
: Some developers even remove logging messages from their code after they think
: the code is bug free. Very interesting and wrong behavior. lol

H***a
发帖数: 189
9
is this what Log4j supposed to work?

【在 d********r 的大作中提到】
: remove logging messages
: 绝对不是一个好习惯。
: log4j做得就已经很好了。
: 如果更进一步的话可以设一个全局变量:debug
: 在每一个需要写log的地方:
: if (debug)
: logger.debug(.........)
: 这样就足够好了。
:
: think

1 (共1页)
进入Java版参与讨论
相关主题
Interesting: LimpidLogeclipse 气死我了!
问个java logger的问题jBuiler 4白皮书(来自inprise网站)
打一些debug information, 这样算不算有用的optimize?Please Help!
a stupid mistake I madeJB JAVA Bean,SERVLET位置一问
Re: 想起几年前Re: run servlet from command liJSP/SERVLET里面如何实现弹出窗口(新短信)功能
run servlet from command line?请问哪位知道如何用Eclipse编译调试Glassfish么
JCreator如何调试程序?菜鸟问题一问
Re: Why are all java IDEs written in javQuestion about Tomcat
相关话题的讨论汇总
话题: servlet话题: debug话题: log4j话题: command话题: ide