c*t
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什么的都是黑的?
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
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.
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.
s*g
5 楼
新建的时候要建成project就可以用了
g*u
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 的大作中提到】
: 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
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什么的都是黑的?
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
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.
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
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 的大作中提到】
: 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
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.
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.
t*g
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.
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
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.
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
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
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
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
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
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
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.
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
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.
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
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
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
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.
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.
相关阅读
Another garbage collection questionJust found eclipse 3.01 doesn't supportAnother Image quesrandom seed generatorstupid questions:XP中,双击.jar文件,为什么不运行Oracle能不能发条消息到JMS上?Anybody subscribe JavaOne Online member?[转载] 继续有效★北京公司招wireless,Java,C/C++ 高级人才★[转载] 如何知道CLIENT一端屏幕的大小?Unix: where to execute java program?how do I get parameters passed by text area (forma Java MultiThreading question请教一个安全方面的MASTER题目Re: Display, edit, and save Image on HTMbinary tree node spacing algorithm helpeclipse problemTomcat用一阵之后就不行了?what is the difference in a binary tree?java3d question[转载] oracle能开多大的连接池?