Thread View: borland.public.jbuilder.debugger
4 messages
4 total messages
Started by Michael Thelen
Tue, 18 Jan 2005 14:41
JBuilder 2005 Exception Breakpoint
Author: Michael Thelen
Date: Tue, 18 Jan 2005 14:41
Date: Tue, 18 Jan 2005 14:41
15 lines
1500 bytes
1500 bytes
Hello! I have the following problem. If I have exception, that I catch within the code there is nothing shown in the debug-mode. But not all my caught excepions print out something readable. So I tried to define my onw exception breakpoint, but I don't get stacktrace nor any other information on the exception. Is there any chance to set this up within Jbuilder or do I always need to put something like <ex.printStackTrace(System.err);> within the catch block. Thanks for help! Mike
Re: JBuilder 2005 Exception Breakpoint
Author: Kevin Dean [TeamB]
Date: Tue, 18 Jan 2005 18:27
Date: Tue, 18 Jan 2005 18:27
29 lines
2079 bytes
2079 bytes
As far as I know, setting an exception breakpoint doesn't actually give you access to the exception itself (stack trace, etc). I agree with you that it would be a good idea. I've submitted it as a request for enhancement. -- Kevin Dean [TeamB] Dolphin Data Development Ltd. http://www.datadevelopment.com/ Please see Borland's newsgroup guidelines at http://info.borland.com/newsgroups/guide.html "Michael Thelen" <der@michi-ist.net> wrote in message news:csjaoj$hrm$05$1@news.t-online.com... > Hello! > > I have the following problem. If I have exception, that I catch within the > code there is nothing shown in the debug-mode. But not all my caught > excepions print out something readable. So I tried to define my onw > exception breakpoint, but I don't get stacktrace nor any other information > on the exception. > > Is there any chance to set this up within Jbuilder or do I always need to > put something like <ex.printStackTrace(System.err);> within the catch > block. > > Thanks for help! > > Mike
Re: JBuilder 2005 Exception Breakpoint
Author: Michael Thelen
Date: Tue, 18 Jan 2005 21:06
Date: Tue, 18 Jan 2005 21:06
20 lines
2010 bytes
2010 bytes
Kevin Dean [TeamB] wrote: > As far as I know, setting an exception breakpoint doesn't actually give you > access to the exception itself (stack trace, etc). I agree with you that it > would be a good idea. I've submitted it as a request for enhancement. > Huuuh, can't believe that there isn't a way. You can evaluate an expression, if you set up a new breakpoint. But indeed there an no implicit objects like i.e. in JSP. There is no information about that in the JBuilder help. But there must be an advantage of using the debug-mode. If I have to introduce a debug variable, I would need to set it to false in all Java classes or I will have the overhead after compiling. Is there a possibilty to only have code executed in debug mode and in normal mode it is not compiled, like in VC++? What is a standard way of handling something like this? Greets Mike
Re: JBuilder 2005 Exception Breakpoint
Author: Kevin Dean [TeamB]
Date: Wed, 19 Jan 2005 03:10
Date: Wed, 19 Jan 2005 03:10
37 lines
2686 bytes
2686 bytes
Unfortunately, Java doesn't really have any concept of conditional compilation. A thought that occurred to me is that at least the stack trace is visible when you stop on an exception breakpoint. It's not perfect, but the stack frame tab in the debugger should give you some information. -- Kevin Dean [TeamB] Dolphin Data Development Ltd. http://www.datadevelopment.com/ Please see Borland's newsgroup guidelines at http://info.borland.com/newsgroups/guide.html "Michael Thelen" <der@michi-ist.net> wrote in message news:csk19d$goo$04$1@news.t-online.com... > Kevin Dean [TeamB] wrote: >> As far as I know, setting an exception breakpoint doesn't actually give >> you access to the exception itself (stack trace, etc). I agree with you >> that it would be a good idea. I've submitted it as a request for >> enhancement. >> > Huuuh, can't believe that there isn't a way. You can evaluate an > expression, if you set up a new breakpoint. But indeed there an no > implicit objects like i.e. in JSP. There is no information about that in > the JBuilder help. > > But there must be an advantage of using the debug-mode. If I have to > introduce a debug variable, I would need to set it to false in all Java > classes or I will have the overhead after compiling. > > Is there a possibilty to only have code executed in debug mode and in > normal mode it is not compiled, like in VC++? What is a standard way of > handling something like this? > > Greets > Mike
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads