Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Dynamic line number in debug info

Reply
Thread Tools

Dynamic line number in debug info

 
 
=?iso-8859-1?B?bW9vcJk=?=
Guest
Posts: n/a
 
      12-19-2005
Hi,
I want to print out debug message with the acutal line number of the
source file, such as:
789 Logger.debug("hello, world!", 789);

But when the source is changed, the line of debugging print moves upper
or lower, is there any better way I can have the logger automatically
trace the line number for me? Thx!

 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      12-19-2005
On 18 Dec 2005 17:46:25 -0800, "moop™" <> wrote,
quoted or indirectly quoted someone who said :

>I want to print out debug message with the acutal line number of the
>source file, such as:
>789 Logger.debug("hello, world!", 789);
>
>But when the source is changed, the line of debugging print moves upper
>or lower, is there any better way I can have the logger automatically
>trace the line number for me? Thx!

see my code for imAt
http://mindprod.com/jgloss/trace.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
 
Reply With Quote
 
 
 
 
=?iso-8859-1?B?bW9vcJk=?=
Guest
Posts: n/a
 
      12-19-2005
Thank you, it helps!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read a file line by line and write each line to a file based on the5th byte scad C++ 23 05-17-2009 06:11 PM
How to read a text file line by line and remove some line kaushikshome C++ 4 09-10-2006 10:12 PM
OT: Number Nine, Number Nine, Number Nine Frisbee® MCSE 37 09-26-2005 04:06 PM
Read a file line by line with a maximum number of characters per line Hugo Java 10 10-18-2004 11:42 AM
Interrogating string for number of characters, response.writing identical number of characters on new line Ken Fine ASP General 2 02-05-2004 03:40 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57