# Debug Oracle procedures called from VB.Net

**URL:** <https://forums.toadworld.com/t/debug-oracle-procedures-called-from-vb-net/9859>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [September 23, 2010, 3:54am UTC](https://forums.toadworld.com/t/debug-oracle-procedures-called-from-vb-net/9859 "2010-09-23T03:54:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin.wells\_453](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@martin.wells\_453](https://forums.toadworld.com/u/martin.wells_453)\
**Post date:** [September 23, 2010, 3:54am UTC](https://forums.toadworld.com/t/debug-oracle-procedures-called-from-vb-net/9859/1 "2010-09-23T03:54:55Z")

</div>

Hi,

I am trying to “Attach an External Session(from [VB.Net](http://VB.Net)) for Debugging” using Toad to debug an oracle function.

This works from one TOAD instance to another using the following commands

Pre-req. The function is compiled with debug.

Toad Session#1

```
select dbms_debug.initialize() from dual;

```

\<\>  
exec dbms\_debug.debug\_on;

Toad Session #2

Then using the menu Debug|Attech external session using the \<\>

Toad Session #1

select f\_pulse from dual

This then brings up Toad Session#2 where I can debug the function f\_pulse.

However, when I do the steps completed by Toad Session#1 in [VB.Net](http://VB.Net), the function executes, returning a value without Toad Session#2 debugging the function.

Does anyone know what I am doing wrong?

Thanks

Martin

---

<div class="post-metadata">

**Author:** ![NormTeamT](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/normteamt/32/53_2.png) [@NormTeamT](https://forums.toadworld.com/u/NormTeamT)\
**Post date:** [September 23, 2010, 3:58am UTC](https://forums.toadworld.com/t/debug-oracle-procedures-called-from-vb-net/9859/2 "2010-09-23T03:58:01Z")

</div>

Martin,

it might be best to post this query to the main Toad list instead of  
this one. More people monitor the TOAD list and this is more to do with  
Toad than SQL.

Unfortunately, I'm unable to help with your problem. ☹

Cheers,  
Norm. [TeamT]

> >
