How to debug ACT in Mechanical with an external software?

Chemsdine CHEMAI
Chemsdine CHEMAI Member, Employee Posts: 201
Photogenic First Comment 5 Likes Solution Developer Community of Practice Member
✭✭✭✭
edited June 2023 in Structures

How to debug ACT in Mechanical with an external software?

Tagged:

Answers

  • Chemsdine CHEMAI
    Chemsdine CHEMAI Member, Employee Posts: 201
    Photogenic First Comment 5 Likes Solution Developer Community of Practice Member
    ✭✭✭✭
    Answer ✓

    You can use Visual Studio to debug by following these steps :

    – Open Mechanical

    – Start Visual Studio

    – Open the IronPython script file for the extension of interest

    – Go to Tools-> Attach to Process...

    – Select the suitable "AnsysWBU.exe”

    – Select “Managed (v4.5, v4.0)" option for code type

    – Press “Attach” button to attach debugger to the process

    Afterwards, you can put break points and access variables by stopping the process when you want.

  • Darren White
    Darren White Member, Employee Posts: 9
    Solution Developer Community of Practice Member Ansys Employee Photogenic First Anniversary
    ✭✭✭
    Answer ✓

    To add to the answer above, it is of course also necessary to make sure Debug Mode is enabled in WorkBench. (I forgot to do this once and it took me ages to work out why the break points in Visual Studio were not working!)

    To do this in WorkBench go to Tools -> Options -> Extensions then select "Debug Mode".