Article View: borland.public.jbuilder.debugger
Article #5203Re: debugger out of sync with source.... (with code sample)
From: Richard Wilkman
Date: Mon, 24 Aug 1998 00:00
Date: Mon, 24 Aug 1998 00:00
177 lines
7538 bytes
7538 bytes
Paul: It's listed as a bug, but it's not what you might think. To solve the problem the way most folks want would require parsing the entire source file. If you find multiple EOL characters of different styles you'd have to normalize the set (which requries user input in some fashion). It's a bug I've seen for years anytime I've had to move data across platforms. There are a variety of solutions (dos2unix, unix2dos) out there for it. -Rich Paul T. Maurer wrote: > > Richard, > > On the money.... I went through all my code and found stray "^M" > characters and cleaned them all up... I assume you get this > issue regularly.... Is this registered as a bug? > > I started using Java Workshop on Friday for debugging because > it didn't have the problem described below... I'm glad I can switch back.... > > Is there a 2.1 release on the horizon? > > Paul > > Richard Wilkman wrote: > > > Paul: > > > > In your attached file, on line 13 (in your catch) there are 2 > > non-printing characters. I suspect they are supposed to be CRLF > > pairs, but they're not. > > > > Where I've seen this. > > > > 1) moving between different platforms and the PC > > 2) using an external editor that used non-PC style handling for EOL > > and then cutting and pasting. > > 3) using an external editor that used non-PC style handling for EOL > > and then saving the file that way. > > > > My usual tool for finding this problem (vi) failed me, but Notepad > > makes the non-printers shine pretty brightly. > > > > -Rich > > > > Paul T. Maurer wrote: > > > > > > Here is some concise code the reproduces the problem > > > on my machine.... > > > > > > Paul T. Maurer wrote: > > > > > > > When stepping through the debugger, at a particular point > > > > in my code, the debugger seems to be 4 lines off from the > > > > actual source code..... this makes it very difficult to work. > > > > > > > > facts: > > > > > > > > 1) I've confirmed that I'm using the correct source code... > > > > there is only one version on my machine. I've removed > > > > and rebuilt the project file and classes from scratch to > > > > ensure.... > > > > > > > > 2) I noticed that the debugger matches the execution while > > > > stepping through untill it reaches a particular try/catch block... > > > > from then on it's off by 4 lines exactly.. > > > > > > > > 3) Here is the weird part.... While stepping through the debugger > > > > and the code is in sync... Strings do not have any special highlighting.... > > > > once I get to the try/catch block then strings are highlighted by the > > > > debugger..... go figure.... > > > > > > > > Would love to talk to anybody at inprise about this.... but am tired > > > > of paying the $225 a call or $4.95 a minute to help Inprise debug > > > > Jbuilder... > > > > > > > > Paul > > > > > > > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > > > > > > > Paul Maurer <paul.maurer@viant.com> > > > > Director > > > > Viant > > > > > > > > Paul Maurer > > > > Director <paul.maurer@viant.com> > > > > Viant > > > > 625 6th Avenue Work: 212-271-6969 > > > > 3rd Floor Fax: 212-271-4455 > > > > New York Netscape Conference Address > > > > NY Netscape Conference DLS Server > > > > 10011 > > > > USA > > > > Additional Information: > > > > Last Name Maurer > > > > First Name Paul > > > > Version 2.1 > > > > > > ---------------------------------------------------------------------- > > > > > > Name: JbuilderBug.java > > > JbuilderBug.java Type: Java File (application/x-unknown-content-type-JBuilder.JavaFile) > > > Encoding: base64 > > > > > > Paul Maurer <paul.maurer@viant.com> > > > Director > > > Viant > > > > > > Paul Maurer > > > Director <paul.maurer@viant.com> > > > Viant > > > 625 6th Avenue Work: 212-271-6969 > > > 3rd Floor Fax: 212-271-4455 > > > New York Netscape Conference Address > > > NY Netscape Conference DLS Server > > > 10011 > > > USA > > > Additional Information: > > > Last Name Maurer > > > First Name Paul > > > Version 2.1 > > > > -- > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > Rich Wilkman > > Senior Quality Assurance Engineer > > Borland JBuilder Team > > > > If you see something that looks like an opinion up there, > > it's mine and mine alone. > > > > Mail sent to me from the newsgroups won't bounce but will > > be ignored. If I have time, I'll respond, but you have > > a better chance if you confine your posts to the newsgroups > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > ---------------------------------------------------------------------- > > Paul Maurer <paul.maurer@viant.com> > Director > Viant > > Paul Maurer > Director <paul.maurer@viant.com> > Viant > 625 6th Avenue Work: 212-271-6969 > 3rd Floor Fax: 212-271-4455 > New York Netscape Conference Address > NY Netscape Conference DLS Server > 10011 > USA > Additional Information: > Last Name Maurer > First Name Paul > Version 2.1 -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<35E1953C.A9A8A255@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35DD8818.9DE39FC4@viant.com> <35DDC31F.17E141CF@viant.com> <35DDED26.19F503F6@inprise.com> <35E06782.6581588A@viant.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5c5,6fb3e2d4cc3b8c32 X-Google-Attributes: gidff5c5,public X-Google-Thread: fa3e3,6fb3e2d4cc3b8c32 X-Google-Attributes: gidfa3e3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: debugger out of sync with source.... (with code sample) Date: 1998/08/24 Message-ID: <35E1953C.A9A8A255@inprise.com> X-Deja-AN: 384231529 Content-Transfer-Encoding: 7bit References: <35DD8818.9DE39FC4@viant.com> <35DDC31F.17E141CF@viant.com> <35DDED26.19F503F6@inprise.com> <35E06782.6581588A@viant.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.debugger,borland.public.jbuilder.ide