# 'Supported' variables in Auto Debugger

**URL:** <https://forums.toadworld.com/t/supported-variables-in-auto-debugger/9665>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [July 6, 2010, 10:55am UTC](https://forums.toadworld.com/t/supported-variables-in-auto-debugger/9665 "2010-07-06T10:55:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenWalker](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BenWalker](https://forums.toadworld.com/u/BenWalker)\
**Post date:** [July 6, 2010, 10:55am UTC](https://forums.toadworld.com/t/supported-variables-in-auto-debugger/9665/1 "2010-07-06T10:55:24Z")

</div>

Hi,  
I’m trying to demonstrate the Auto Debugger to other members of my team, so I thought I’d just write a very small bit of PL/SQL to demonstrate it. When I try and apply the Auto Debugger to this code:  
BEGIN  
DECLARE  
l\_last\_name hz\_parties.person\_last\_name%TYPE;  
l\_first\_name hz\_parties.person\_first\_name%TYPE;  
BEGIN  
FOR r IN (SELECT \*  
FROM hz\_parties  
WHERE person\_last\_name = ‘Williams’)  
LOOP  
l\_last\_name := r.person\_last\_name;  
l\_first\_name := r.person\_first\_name;  
END LOOP;  
END;  
END;

I get the error message:  
‘There were no supported variables or parameters found’

What’s wrong with these variables, and if these aren’t supported, which ones are?

Ben

---

<div class="post-metadata">

**Author:** ![BenWalker](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@BenWalker](https://forums.toadworld.com/u/BenWalker)\
**Post date:** [July 6, 2010, 11:08am UTC](https://forums.toadworld.com/t/supported-variables-in-auto-debugger/9665/2 "2010-07-06T11:08:19Z")

</div>

OK, I’ve answered my own question.

This is supported:  
l number := 0;  
This is not:  
l\_last\_name hz\_parties.person\_last\_name%TYPE := ‘W’;

If you have a ‘supported’ variable in your package, the auto debugger will add debug info after an unsupported variable has a value assigned, but the debug info is not for the unsupported variable:

l\_first\_name := r.person\_first\_name;  
– \<Toad\_56398571\_2\> \*\*\* DO NOT REMOVE THE AUTO DEBUGGER START/END TAGS  
DBMS\_OUTPUT.PUT\_LINE(’{Toad\_56398571\_2} ‘);  
DBMS\_OUTPUT.PUT\_LINE(’{Toad\_56398571\_2}[— 2 —]’);  
DBMS\_OUTPUT.PUT\_LINE(’{Toad\_56398571\_2} ‘);  
DBMS\_OUTPUT.PUT\_LINE(’{Toad\_56398571\_2}[2] l = ’ || l);  
– \</Toad\_56398571\_2\>

This could probably be improved!

Ben

---

<div class="post-metadata">

**Author:** ![mstaszew](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/mstaszew/32/23_2.png) [@mstaszew](https://forums.toadworld.com/u/mstaszew)\
**Post date:** [July 6, 2010, 11:08am UTC](https://forums.toadworld.com/t/supported-variables-in-auto-debugger/9665/3 "2010-07-06T11:08:19Z")

</div>

It’s extremely simple and doesn’t evaluate more complex types. That  
would be a nice ER for the future. It also outputs anything that it can after  
every assignment, before exit conditions, after calls to other PL/SQL, etc. It  
doesn’t do too much “thinking” about what is appropriate and  
what is not at a given insertion point. Too much thinking will decrease  
performance and for real debugging you have access to the DBMS or JDWP  
debuggers. This is a quick and dirty debugging tool and not a replacement for  
the real debugger(s).
