Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: slightly OT: Debugging package

RE: slightly OT: Debugging package

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Mon, 28 Jan 2002 10:06:50 -0800
Message-ID: <F001.003FD827.20020128094532@fatcity.com>


Try following ...

  SELECT DECODE(TO_CHAR(us.line), '1', ue.text||'

                               Pkg:'||us.name||chr(10)||chr(10)||
                             '   '||TO_CHAR(us.line,'99990')||' '||us.text,
                         TO_CHAR(ue.line-7),ue.text||'   Pkg:'||us.name||'
',
                         TO_CHAR(ue.line-6),'',
                         TO_CHAR(ue.line+6),'',
                         TO_CHAR(ue.line)  ,'-->'||TO_CHAR(us.line,'99990')

||' '||us.text
,' '||TO_CHAR(us.line,'99990')
||' '||us.text) outline
  FROM USER_SOURCE us, USER_ERRORS ue
  WHERE us.line BETWEEN (ue.line-7) AND (ue.line+6)
  AND us.name = ue.name
  AND us.TYPE = ue.TYPE
  AND ue.text NOT LIKE 'PL/SQL: Statement ignored'
  AND ue.text NOT LIKE 'PL/SQL: Declaration ignored'
  ORDER BY ue.name, ue.line, ue.text, us.line /

I think this is somewhere written in TOAD installation too. Raj



Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

*********************************************************************1

This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.

*********************************************************************1
Received on Mon Jan 28 2002 - 12:06:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US