Print Thread
Page 4 of 5 1 2 3 4 5
Re: Debugger Hangs on Array
#14179 04/03/07 01:26 PM
Joined: Sep 2003
Posts: 387
London, UK
Member
Offline
Member
Joined: Sep 2003
Posts: 387
London, UK
You are right, the debugger should cope. From what I've seen, it has trouble with both varrays and nested table collections.

I often see varrays used in PL/SQL when the more useful nested table type would be a better choice, and I just wondered if there was some reason for it.

Re: Debugger Hangs on Array
#14180 04/03/07 02:16 PM
Joined: Jun 2004
Posts: 105
S
Member
Offline
Member
S
Joined: Jun 2004
Posts: 105
yes, we use the varrays for table columns. and so far we didn't experience any problems with that.

Re: Debugger Hangs on Array
#14181 04/25/07 02:36 PM
Joined: Jun 2004
Posts: 105
S
Member
Offline
Member
S
Joined: Jun 2004
Posts: 105
any updates on this ?

Re: Debugger Hangs on Array
#14182 04/25/07 10:23 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
No updates yet.


Marco Kalter
Allround Automations
Re: Debugger Hangs on Array
#14183 05/11/07 11:08 AM
Joined: Jun 2004
Posts: 105
S
Member
Offline
Member
S
Joined: Jun 2004
Posts: 105
this post is 3 years old, and there a still no updates. i can't believe this

Re: Debugger Hangs on Array
#14184 05/11/07 12:47 PM
Joined: Jun 2003
Posts: 52
Lenzburg, Switzerland
T
til Offline OP
Member
OP Offline
Member
T
Joined: Jun 2003
Posts: 52
Lenzburg, Switzerland
Well I think the debugger aught to be able to handle arrays.
It works perfectly well for an array which is a locally declared variable.
But if the array (of same type) is passed as parameter, the whole application freezes when you do "view collection variable". All you can do is shut it down then (just what you want when your debugging, eh?)
It doesn't seem to freeze on hover of the mouse any more (at least in my simple test case).
The least I would expect is the application to continue working. What i really want is of course, to be able to inspect a parameter array just like a locally declared one.
And what's really bad: if i assign the parameter array to the local one, it also hangs on inspection of the local array! So no easy workaround there.

Re: Debugger Hangs on Array
#14185 05/14/07 01:03 PM
Joined: Feb 2005
Posts: 59
Latvia
K
Member
Offline
Member
K
Joined: Feb 2005
Posts: 59
Latvia
Can Laurent Feltz test this with some reasonable size of array, like 50, 150, 1500, coz if this is related to error in PLSQLDev, then it would hang anyway, but what if PLSQLDev tries to get all those 2.14 milliard stuff from DB?
As I rememeber, PLSQLDev gets only first 1K recs from array, actually...
And myself, I never had a problem of that type - hanging with arrays, but I never use varrays, especially 2.14 miliard ones, nested tables is usually a way to go for me smile


regards
Kirurgs
Re: Debugger Hangs on Array
#14186 05/25/07 01:08 PM
Joined: Mar 2007
Posts: 12
Swiss
L
Member
Offline
Member
L
Joined: Mar 2007
Posts: 12
Swiss
As suggest by Kirurgs, I tried with a varray with a reasonable size, that is 10! I still have the same problem: pl/sql dev freezes.

I'm using now pl/sql dev. 7.1.1.1339
Oracle release is always 9.2.0.7 (as said in previous messages, it seems that this problem appears with Oracle 9.2.0.1).

Marco, please try to reproduce the problem: please use a database server 9.2.0.x and the following code:

CREATE OR REPLACE TYPE "AR_NUM_TEST" AS VARRAY(10) OF NUMBER;

CREATE OR REPLACE PROCEDURE test_varray ( par IN ar_num_test)
IS
BEGIN
IF
par IS NOT NULL
THEN
dbms_output.put_line('<NOT NULL>'); -- Breakpoint here -> PL/sql Dev freezes when I try to watch from here the parameter "par"
END IF;
RETURN;
END test_varray;


-- Test script
declare
-- Local variables here
lar ar_num_test := ar_num_test (1, 2, 3);
begin
test_varray (par => lar);
end;

Re: Debugger Hangs on Array
#14187 05/25/07 05:34 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
[quote]Marco, please try to reproduce the problem: please use a database server 9.2.0.x and the following code[/quote]Sure, we'll check it out, and I will post our findings.


Marco Kalter
Allround Automations
Re: Debugger Hangs on Array
#14188 05/25/07 05:44 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
I tested this on 9.2.0.1, where it does indeed cause a hang-up, and on 10.2.0.1, where it works just fine. It looks like a 9.2.0.x specific bug.


Marco Kalter
Allround Automations
Page 4 of 5 1 2 3 4 5

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.097s Queries: 14 (0.048s) Memory: 2.5603 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-29 10:42:17 UTC
Valid HTML 5 and Valid CSS