由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - JCreator如何调试程序?
相关主题
想起几年前Re: run servlet from command line?跨平台调试一般怎么搞
如何在WINDOWS上DEBUG JAVA怎么样让jar在64位JRE下运行啊?
eclipse 气死我了!java 新手
Which IDE is good in Linux?Is this a Bug or not?
请教大家一些问题JVM
请问用什么java developer? 在哪里下载?JDK Source?
菜鸟问题一问请教一个问题,thanks!
help with java debuggerjava在美国到底怎样?
相关话题的讨论汇总
话题: debugger话题: gui话题: java话题: swing话题: debugging
进入Java版参与讨论
1 (共1页)
f******2
发帖数: 105
1
为什么我的JCreator里边有关调试的选项
start debugger, step什么的都是黑的?
c*****t
发帖数: 1879
2
A java developer should not need to use a debugger at all.
Stack trace and println are 100x more effective in debugging
and discovering bugs.
As for your question, usually each java class can have a main
function, so it is necessary to define which class you are trying
to run.

【在 f******2 的大作中提到】
: 为什么我的JCreator里边有关调试的选项
: start debugger, step什么的都是黑的?

g*****g
发帖数: 34805
3
I think a debugger is essential for non-trivial program,
debugger certainly help improve productivity.

【在 c*****t 的大作中提到】
: A java developer should not need to use a debugger at all.
: Stack trace and println are 100x more effective in debugging
: and discovering bugs.
: As for your question, usually each java class can have a main
: function, so it is necessary to define which class you are trying
: to run.

t*********g
发帖数: 23
4
true

【在 g*****g 的大作中提到】
: I think a debugger is essential for non-trivial program,
: debugger certainly help improve productivity.

s********g
发帖数: 1
5
新建的时候要建成project就可以用了
g******u
发帖数: 153
6
这个也太抬举println和stack trace了。

【在 c*****t 的大作中提到】
: A java developer should not need to use a debugger at all.
: Stack trace and println are 100x more effective in debugging
: and discovering bugs.
: As for your question, usually each java class can have a main
: function, so it is necessary to define which class you are trying
: to run.

c*****t
发帖数: 1879
7
A java developer should not need to use a debugger at all.
Stack trace and println are 100x more effective in debugging
and discovering bugs.
As for your question, usually each java class can have a main
function, so it is necessary to define which class you are trying
to run.

【在 f******2 的大作中提到】
: 为什么我的JCreator里边有关调试的选项
: start debugger, step什么的都是黑的?

g*****g
发帖数: 34805
8
I think a debugger is essential for non-trivial program,
debugger certainly help improve productivity.

【在 c*****t 的大作中提到】
: A java developer should not need to use a debugger at all.
: Stack trace and println are 100x more effective in debugging
: and discovering bugs.
: As for your question, usually each java class can have a main
: function, so it is necessary to define which class you are trying
: to run.

B******N
发帖数: 445
9
i doubt your productivity, though you are NIU.

【在 c*****t 的大作中提到】
: A java developer should not need to use a debugger at all.
: Stack trace and println are 100x more effective in debugging
: and discovering bugs.
: As for your question, usually each java class can have a main
: function, so it is necessary to define which class you are trying
: to run.

c*****t
发帖数: 1879
10
Hmm, I wrote and managed an 100k+ lines of Java GUI application without
using debugger at all. And I am recognized by my supervisor as a fast
coder ^_^
I have no idea why you have to depend on the debugger. Exception stack
trace tells you the exactly the line of the problem.

【在 B******N 的大作中提到】
: i doubt your productivity, though you are NIU.
相关主题
请问用什么java developer? 在哪里下载?跨平台调试一般怎么搞
菜鸟问题一问怎么样让jar在64位JRE下运行啊?
help with java debuggerjava 新手
进入Java版参与讨论
t*********g
发帖数: 23
11
100K+ line Java GUI application is not a big deal.
debugger is much more helpful on the server side application.

【在 c*****t 的大作中提到】
: Hmm, I wrote and managed an 100k+ lines of Java GUI application without
: using debugger at all. And I am recognized by my supervisor as a fast
: coder ^_^
: I have no idea why you have to depend on the debugger. Exception stack
: trace tells you the exactly the line of the problem.

g*****g
发帖数: 34805
12
As I said many times, it's not that you cannot do it, but
that you are not doing it as quickly as you can with an IDE.
Eclipse is gonna beat any editor without a debugger for any non-trivial
application, that's the bloody truth.
In many cases, you don't have an Exception stack, you code logic simply goes
wrong somewhere. How do you debug it without a debugger? A reasonable
guess would be writing some System.out or logger.debug stuff, if you are
using a collection, especially multi-level collecti

【在 c*****t 的大作中提到】
: Hmm, I wrote and managed an 100k+ lines of Java GUI application without
: using debugger at all. And I am recognized by my supervisor as a fast
: coder ^_^
: I have no idea why you have to depend on the debugger. Exception stack
: trace tells you the exactly the line of the problem.

c*****t
发帖数: 1879
13
On the contrary, running from debugger is bad because
1. slow. Application launched by JVM in general runs significantly slower,
even if you do not consider the debugging.
2. break point. The hard part of debugging is actually figuring out what's
wrong. How could you break point everything? You are just wasting
your time doing stepping for a non-trivial application. That's why
exception stack and exception cascade and logging are critical in
reporting bugs, otherwise you coul

【在 g*****g 的大作中提到】
: As I said many times, it's not that you cannot do it, but
: that you are not doing it as quickly as you can with an IDE.
: Eclipse is gonna beat any editor without a debugger for any non-trivial
: application, that's the bloody truth.
: In many cases, you don't have an Exception stack, you code logic simply goes
: wrong somewhere. How do you debug it without a debugger? A reasonable
: guess would be writing some System.out or logger.debug stuff, if you are
: using a collection, especially multi-level collecti

g*****g
发帖数: 34805
14

What do you mean slower? Don't you have to have a JVM to run a java app
anyway?
It does slow down a bit in debugging mode, but for most applications, it's
not something detectable.
s
Isn't that the same problem for you to figure out where to put the debugging
code? I only step through code that are suspicous, without writing any code,
which is for sure faster. And does using a debugger have anything to do
with stacks/loggings..? I still have the exception stack and log4j, only I
am
one click aw

【在 c*****t 的大作中提到】
: On the contrary, running from debugger is bad because
: 1. slow. Application launched by JVM in general runs significantly slower,
: even if you do not consider the debugging.
: 2. break point. The hard part of debugging is actually figuring out what's
: wrong. How could you break point everything? You are just wasting
: your time doing stepping for a non-trivial application. That's why
: exception stack and exception cascade and logging are critical in
: reporting bugs, otherwise you coul

c*****t
发帖数: 1879
15
Well, go test a piece code (any language, including Java) that normally
finishes within 1 sec from command line. Now execute it from a JVM, it
can take up to 10 sec to finish, particularly if it contains floating
point calculations.
The fundamental problem with using debugger is
1. One has to know where the problem occurs. Otherwise, you are wasting
time stepping. A lot of time, a bug occurs in a function not really
because the function is bugged, but the problem has occurred else
wh

【在 g*****g 的大作中提到】
:
: What do you mean slower? Don't you have to have a JVM to run a java app
: anyway?
: It does slow down a bit in debugging mode, but for most applications, it's
: not something detectable.
: s
: Isn't that the same problem for you to figure out where to put the debugging
: code? I only step through code that are suspicous, without writing any code,
: which is for sure faster. And does using a debugger have anything to do
: with stacks/loggings..? I still have the exception stack and log4j, only I

B******N
发帖数: 445
16
yeah,, this is what i want to say. GUI doesn't have a lot of business logic
inside, so not a lot of debugging needed.
Java Swing does have a big learning curve, but once you master it you really
master it. Not a lot of debugging needed.

【在 t*********g 的大作中提到】
: 100K+ line Java GUI application is not a big deal.
: debugger is much more helpful on the server side application.

c*****t
发帖数: 1879
17
lol... What kind of GUI application did you develop? If you are just
laying things out, that's the trivial part. I can write a fairly
complicated layout for Swing in minutes using XML. I won't be bragging
on that ^_^
God's work is in the details. Writing an interactive application that
consider a wide range of things users could do and would do and provide
the best experience is not so trivial. And we haven't touched the
feature part.

logic
really

【在 B******N 的大作中提到】
: yeah,, this is what i want to say. GUI doesn't have a lot of business logic
: inside, so not a lot of debugging needed.
: Java Swing does have a big learning curve, but once you master it you really
: master it. Not a lot of debugging needed.

B******N
发帖数: 445
18
frankly speaking, the swing code i wrote probably is not less than yours.
the interactivity thing you mentioned is usability issue, there are
professionals to take care. I work with serveral of them, i have pretty good
sense for that part.
I don't feel Swing is fun anymore, since i almost know everything, from
developing a chart library to IDE level UI developement, also customized
look and feel. I have read almost all swing source code. no magic any more.

【在 c*****t 的大作中提到】
: lol... What kind of GUI application did you develop? If you are just
: laying things out, that's the trivial part. I can write a fairly
: complicated layout for Swing in minutes using XML. I won't be bragging
: on that ^_^
: God's work is in the details. Writing an interactive application that
: consider a wide range of things users could do and would do and provide
: the best experience is not so trivial. And we haven't touched the
: feature part.
:
: logic

c*****t
发帖数: 1879
19
We are off topic, but I am in the mood of chatting ^_^
A GUI application is not just Swing. As I said, Swing itself is
the trivial part. GUI has 3 components: framework, individual modules
(plugins), interaction among modules. Frame work is important because
different modules can run in the same JVM, but that would not automatically
means an application. It provides configuration, module loading, document
manager, GUI services such as menu, toolbar, docking, look&feel and
message logging, et

【在 B******N 的大作中提到】
: frankly speaking, the swing code i wrote probably is not less than yours.
: the interactivity thing you mentioned is usability issue, there are
: professionals to take care. I work with serveral of them, i have pretty good
: sense for that part.
: I don't feel Swing is fun anymore, since i almost know everything, from
: developing a chart library to IDE level UI developement, also customized
: look and feel. I have read almost all swing source code. no magic any more.

1 (共1页)
进入Java版参与讨论
相关主题
java在美国到底怎样?请教大家一些问题
Extracting JavaDoc comment?请问用什么java developer? 在哪里下载?
Help: how to use Eclipse as C++ IDE in Linux?菜鸟问题一问
语言坑:有没有Java和C#两边都用的help with java debugger
想起几年前Re: run servlet from command line?跨平台调试一般怎么搞
如何在WINDOWS上DEBUG JAVA怎么样让jar在64位JRE下运行啊?
eclipse 气死我了!java 新手
Which IDE is good in Linux?Is this a Bug or not?
相关话题的讨论汇总
话题: debugger话题: gui话题: java话题: swing话题: debugging