🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.debugger
Article #222

Re: JBuilder 2005 Exception Breakpoint

#222
From: Kevin Dean [TeamB]
Date: Wed, 19 Jan 2005 03:10
37 lines
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 
Technical Details
Message-ID: <41edcf8c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <csjaoj$hrm$05$1@news.t-online.com> <41ed5590$1@newsgroups.borland.com> <csk19d$goo$04$1@news.t-online.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: ff5c5,5f08965941684098
X-Google-Attributes: gidff5c5,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Newsgroups: borland.public.jbuilder.debugger
References: <csjaoj$hrm$05$1@news.t-online.com> <41ed5590$1@newsgroups.borland.com> <csk19d$goo$04$1@news.t-online.com>
Subject: Re: JBuilder 2005 Exception Breakpoint
Date: Tue, 18 Jan 2005 22:10:04 -0500
Lines: 39
Organization: Dolphin Data Development Ltd.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 24.57.153.235
Message-ID: <41edcf8c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106104204 24.57.153.235 (18 Jan 2005 19:10:04 -0800)
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail