Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Debuggin a Macro !!

Former Member
0 Likes
506

Hi All,

Can anyone of u pls guide me in how to debug a macro, if possible with an example.

<REMOVED BY MODERATOR>

Regards,

John.

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 5:11 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
485

John,

A simple way would be to replace where the macro is used with the code of the macro.

Replace the &parms with the appropiate values and then run/compile it. You can then trace it, make the modifications to both the inline code and the macro until you get it working. then return the macro and remove the inline code.

4 REPLIES 4
Read only

Former Member
0 Likes
485

You cannot debug a macro. <REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 10:59 AM

Read only

Former Member
0 Likes
485

Hi John,

Refer to the below related threads ...Hope it helps

Regards,

Santosh

Read only

Former Member
0 Likes
486

John,

A simple way would be to replace where the macro is used with the code of the macro.

Replace the &parms with the appropiate values and then run/compile it. You can then trace it, make the modifications to both the inline code and the macro until you get it working. then return the macro and remove the inline code.

Read only

0 Likes
485

Macro debugging is not possible.

One way is to replace the macro with a perform and then debugging it. The & parameters will become the using/changing parameters of this subroutine.

Unless you want to keep the execution of your code non-debuggable, I don't see any benefits to developing a macro in custom code.