Morning Richard,
From where should I press CTRL+SHIFT+F9? I don't see it in
my Key Mapping options - is that from the SB or from the SE?
Stick the cursor on the procedure you want to debug - anywhere within
it's code - in the Editor, and press those keys, or, click on one of the
debug buttons (I step into myself) or click debug->set Parameters.
Toad will popup a dialogue allowing you to set any parameters for the
procedure your cursor is inside. When you click OK, you can then F11 to
execute that anon-block under the debugger.
The shortcut keys, CTRL SHIFT F9, is shown on the debug->set parameters
menu option.
The alternative is to click inside the procedure, and click the step
into button, the dialogue will appear for you to set up parameters etc.
Now clicking on the execute button will step you into the code. (There's
nothing stopping you from editing the code in the dialogue that appears
by the way!
I did try stepping into three procs this morning, I had all three open
in the same editor tab. When I set the parameters for the first one, I
manually added the code to run the other two and I was able to step
into each one.
The code originally looked like :
declare
-- variables for "test_1" defined here.
begin
test_1(params);
COMMIT;
end;
The params dialogue only let me enter the params for test_1. I changed
the anon-block to the following:
declare
-- variables for "test_1" defined here.
-- Added variable for "test_2" & "test_3".
begin
test_1(params);
test_2(params);
test_3(params);
end;
The debugger was happy to step into all three procs.
However, these were simple procs and things may not be as happy in real
world code.
HTH
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