1. #1
    Deleted

    how do you test and debug addon code?

    As far as I know, you can't update an addon while the game is running, so you need to login and back out every time you change the code. isn't this really cumbersome and annoying to test addons?

  2. #2
    If you make changes to already loaded files, you can refresh them by doing /reload ui . This will not help if you are adding new files to the addoin however.

  3. #3
    Deleted
    /reload reloads the UI, but doesn't reload the client's index of the folder structure. Any files added to the addon's folder will require a full client restart - however, simple modifications to a single file only need a /reload.

    The reason restarting the client is recommended when updating addons is that, to the end user, it is rarely apparent whether or not the author added any files.

  4. #4
    The Lightbringer
    15+ Year Old Account
    Join Date
    Jun 2008
    Location
    Italy
    Posts
    3,564
    if you only modify the code all you need is a /rl

    SSD say "ni hao" (seriously, it's a pain writing addons without an SSD)
    Last edited by S7orm; 2013-05-30 at 01:49 PM.

  5. #5
    High Overlord Pelf's Avatar
    15+ Year Old Account
    Join Date
    Mar 2008
    Location
    US-Sargeras
    Posts
    108
    I've also found _DevPad to be invaluable for testing stuff before it gets pushed into actual addon files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •