# debug with compile crashes Toad

**URL:** <https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [January 21, 2016, 7:03am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884 "2016-01-21T07:03:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![emeade](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@emeade](https://forums.toadworld.com/u/emeade)\
**Post date:** [January 21, 2016, 7:03am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/1 "2016-01-21T07:03:22Z")

</div>

Any time I use debug with TOAD 12.6.0.53 it crashes before completing its execution.

Any ideas?

---

<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:** [January 21, 2016, 7:12am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/2 "2016-01-21T07:12:02Z")

</div>

> Any ideas?

Nope, not without any information. You'll need to provide some basic details of the crash at the very least.

---

<div class="post-metadata">

**Author:** ![emeade](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@emeade](https://forums.toadworld.com/u/emeade)\
**Post date:** [January 21, 2016, 7:36am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/3 "2016-01-21T07:36:34Z")

</div>

Debugging a procedure in a package ( in Editor window) Debug\>set parameters\>…\>set breakpoint\>Compile with debug\>F11\>Execute

Result:

Toad Oracle is not responding close program (FORCED TO CLOSE TOAD)

---

<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:** [January 21, 2016, 8:14am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/4 "2016-01-21T08:14:32Z")

</div>

There have been some problems in the past regarding raised (possibly unhandled) exceptions in the PL/SQL and parameters with spaces or otherwise requiring double quotes. If you execute without debug does the hang still occur? Does your code raise an exception? Do your parameters require double quotes? You can also try Toad 12.8 to see if the issue has been resolved.

---

<div class="post-metadata">

**Author:** ![GTDG](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/gtdg/32/140_2.png) [@GTDG](https://forums.toadworld.com/u/GTDG)\
**Post date:** [January 21, 2016, 10:44pm UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/5 "2016-01-21T22:44:49Z")

</div>

You have to explain more than “crash”. Does it create an access violation, error dialog, wink out of existence? Were you stepping in, over, out, halting, watching? Is it every procedure/function/package or just specific ones?

**From:** emeade [[mailto:bounce-emeade@toadworld.com](mailto:bounce-emeade@toadworld.com)]

**Sent:** Thursday, January 21, 2016 10:06 AM

**To:** [toadoracle@toadworld.com](mailto:toadoracle@toadworld.com)

**Subject:** [Toad for Oracle - Discussion Forum] debug with compile crashes Toad

**[debug with compile crashes Toad](http://www.toadworld.com/products/toad-for-oracle/f/10/t/27238)**

Thread created by emeade

Any time I use debug with TOAD 12.6.0.53 it crashes before completing its execution.

Any ideas?

To reply, please reply-all to this email.

[Stop receiving emails](http://www.toadworld.com/products/toad-for-oracle/f/10/t/27238?subscribe=false) on this subject.

Or [  
Unsubscribe from Toad for Oracle - General](http://www.toadworld.com/products/toad-for-oracle/f/10?subscribe=false) notifications altogether.

Toad for Oracle - Discussion Forum

[Flag](http://www.toadworld.com/products/toad-for-oracle/f/10/t/27238?AbuseContentId=be00a9c3-33c2-4b5c-8d7c-29f9e709be0e&AbuseContentTypeId=46448885-d0e6-4133-bbfb-f0cd7b0fd6f7&AbuseFlag=true)  
this post as spam/abuse.

---

<div class="post-metadata">

**Author:** ![emeade](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@emeade](https://forums.toadworld.com/u/emeade)\
**Post date:** [January 22, 2016, 12:19am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/6 "2016-01-22T00:19:59Z")

</div>

The only dialogue was Toad Oracle is not responding Windows is searching for a solution… Close program. No stepping etc. - just clicked execute and a few seconds later that dialogue appeared. Yes it is every procedure in all packages that I have tested so far. Happens in both Oracle 10g & 12c (upgraded recently). Strangely if it is extracted out into a stand alone procedure with the refcursor removed it works. But for proper debugging I need to be able to debug within the package.

---

<div class="post-metadata">

**Author:** ![emeade](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@emeade](https://forums.toadworld.com/u/emeade)\
**Post date:** [January 22, 2016, 12:28am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/7 "2016-01-22T00:28:47Z")

</div>

There are several exceptions in the PLSQL procedures - all handled including “when others…”. No hanging with execute without debug. No parameters require double quotes or have whitespace in them.

---

<div class="post-metadata">

**Author:** ![emeade](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@emeade](https://forums.toadworld.com/u/emeade)\
**Post date:** [February 3, 2016, 4:57am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/8 "2016-02-03T04:57:35Z")

</div>

I accepted your answer too soon unfortunately - as I have done an upgrade to 12.8 - same issue arising. Hang does not occur if you execute without debug. Exception handling is built in. No double quotes required for parameters.

The following are screenshots of the performance analyzer just prior to toad forcibly closing.:

---

<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:** [February 3, 2016, 6:05am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/9 "2016-02-03T06:05:26Z")

</div>

I’m not sure what it could be, but it might be specific to your package. You said it works OK as a standalone procedure with the refcursor removed. If the refcursor is still in place does it also fail? I would try to isolate the cause as much as you can by duplicating your package and systematically removing bits and pieces of it until you get a procedure that will execute without crash. Then let us know what it was about your code that causes the problem. Perhaps focus on package initialization code first.

---

<div class="post-metadata">

**Author:** ![GTDG](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/gtdg/32/140_2.png) [@GTDG](https://forums.toadworld.com/u/GTDG)\
**Post date:** [February 3, 2016, 6:19am UTC](https://forums.toadworld.com/t/debug-with-compile-crashes-toad/34884/10 "2016-02-03T06:19:12Z")

</div>

Can you reproduce the issue with a non-proprietary schema (SCOTT or HR)? If so, would you send the code sample?
