Unable to debug user defined types?


#1

Hello,

code ran for years. Now for the first time I’m getting “No data found” and want to analyze what happens:

Defined type

Type intmaptable is table of integer index by binary_integer

declared local variable

fids intmaptable;

wrote code

for i in fids.FIRST…fids.LAST loop

trying to add watch at ‘fids’ leads to

undeclared identifier

Any ideas, how to watch and inspect user defined types?

Yours

MatthiasG


#2

Hi Matthias,

wrote code
for i in fids.FIRST…fids.LAST loop

trying to add watch at ‘fids’ leads to
undeclared identifier

Any ideas, how to watch and inspect user defined types?

I think you have to copy them to a “normal” data type. It’s been a while
since I did any watching of variables and I’m pretty sure this is what I
had to do using the DBMS_DEBUG system,

The JDWP debugger might be different? Have you tried that one?

Cheers,
Norm. [TeamT]

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else. We have checked this email and its attachments for viruses. But you should still check any attachment before opening it. We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes. If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at www.environment-agency.gov.uk


#3

wrote code
for i in fids.FIRST…fids.LAST loop

trying to add watch at ‘fids’ leads to
undeclared identifier

Any ideas, how to watch and inspect user defined types?

I think you have to copy them to a “normal” data type.

I generally create a record type, then copy the fetched value into the record
variable. Toad has never had issues seeing the data in a record – as
opposed to a table/array/multi-record/whatever-you-want-to-call-it.

RAS


#4

It’s actually not about Toad “seeing” the values…for all watches, we ask
Oracle for the value using the dbms_debug.get_value call. Unfortunately, we can
only show what Oracle will give us.


#5

It’s actually not about Toad “seeing” the values

Whether it’s limited functionality you are using (like dbms_debug vs the
java debugger facility, or whatever reason…

However you’d like to explain it, I can see those values just fine in Toad
:wink:

Roger S.