Home > Community > Forums > Custom IC SKILL > how to find the source code in virtuoso

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 how to find the source code in virtuoso 

Last post Mon, Nov 4 2013 5:31 AM by Andrew Beckett. 5 replies.
Started by acom 01 Nov 2013 02:48 AM. Topic has 5 replies and 2791 views
Page 1 of 1 (6 items)
Sort Posts:
  • Fri, Nov 1 2013 2:48 AM

    • acom
    • Not Ranked
    • Joined on Fri, Nov 1 2013
    • Posts 8
    • Points 145
    how to find the source code in virtuoso Reply

    Could you help me to solve these two questions?

    I want to find the source code fot the self-defined function in virtuoso, i have two clues:

    (1).the function name.

    (2).the popup window invoked by the function.

     do you have any idea about how to find the source code for the function?

     

    Thanks 

     

    Filed under:
    • Post Points: 20
  • Mon, Nov 4 2013 1:38 AM

    Re: how to find the source code in virtuoso Reply

    If you have the "SKILL Development" license, you can do:

    virtuoso -nocdsinit

    and then after it has started, do:

    sstatus(debugMode t)
    load(".cdsinit")

    and then you can type:

    whereIs(theFunctionName)

    This will tell you the file (and line number) where the function is defined. The code has to be loaded in "debug" mode though.

    Kind Regards,

    Andrew.

    • Post Points: 20
  • Mon, Nov 4 2013 2:18 AM

    • acom
    • Not Ranked
    • Joined on Fri, Nov 1 2013
    • Posts 8
    • Points 145
    Re: how to find the source code in virtuoso Reply

    thanks so much, Andrew.it worked.

    but i still cann't find the real source code i want.It is a popup window.when i clicked the pulldown from the virtuoso, the window would appear. when i clicked on the apply button in the popup window, some operation will be exectued.i would like to optimize the operation.But cann't find the source code.Do you have any suggestion for this?

    Thanks

    • Post Points: 20
  • Mon, Nov 4 2013 3:27 AM

    Re: how to find the source code in virtuoso Reply

    Your question doesn't really give me anything to go on...

    Andrew.

    • Post Points: 20
  • Mon, Nov 4 2013 5:17 AM

    • acom
    • Not Ranked
    • Joined on Fri, Nov 1 2013
    • Posts 8
    • Points 145
    Re: how to find the source code in virtuoso Reply

    I mean for a popup window.it must have a variable or callback function for it.

    i just want to find out the callback function.

    i am just inspired by you.may I use the script like below to find the callback function?

    cv=geGetCurrentCellView()

    cv~>(or ->)to find its callback function or variable?

     Please help me to finish the script if it is possible

    Sorry, i am beginner in skill.not so familiar with it.

    thanks so much for your help. 

    • Post Points: 20
  • Mon, Nov 4 2013 5:31 AM

    Re: how to find the source code in virtuoso Reply

    OK, if you have a form open and you want to find out the function that is called when you OK the form, you can do the following:

    1. Click in the form to ensure that it is "current" - i.e. it is the active form.
    2. In the CIW, type:
      form=hiGetCurrentForm()
    3. Then find the callback for the form, by typing: form->_doneAction
    4. If it's a field callback you're trying to find, you can also do form->fieldList to find all the fields, and if the field name is now, you can do form->fieldname->?? and you can then see all the attributes of that field (including _callback).
    5. In addition, if you turn on the log filter settings (under Options->Log Filter) you can see the SKILL function generated when you OK the form or interact with a field.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by acom at 01 Nov 2013 02:48 AM. Topic has 5 replies.