Skip to content

Latest commit

 

History

History
executable file
·
113 lines (74 loc) · 2.79 KB

File metadata and controls

executable file
·
113 lines (74 loc) · 2.79 KB

Dev Resources

CurseForge Support

Debugging Tools

Slash commands

  • /fstack: Shows a Z-ordered (I think) list of all the UI frames under the cursor

  • /etrace: Shows a running commentary of game events (and the parameters passed to them) as they happen

  • /dump: Just dumps a variable's value to chat. This works better than print for tables.

  • /script: Anything following this will executed immediately as Lua code.

  • /dump GetMouseFocus(): Dump on anything your mouse is over

Replacement Tokens

Debug replacements

These occur based on filetype, as they tend to tie into the comment system for the file. The insides aren't removed so that line numbers stay the same, they just cause them to be commented out.

#Lua

--@debug@ 
print('hello')
--@end-debug@

Turns into --[===[@debug and --@end-debug]===].

--[===[@non-debug@ and --@end-non-debug@]===]

Turns into --@non-debug@ and --@end-non-debug@.

XML

<!--@debug@--> (insert code here) <!--@end-debug@-->

Turns into .

<!--@non-debug@--> (insert code here) <!--@end-non-debug@-->

Turns into (insert code here) .

TOC

#@debug@
## X-Version: 1.0.0
#@end-debug@

Turns into #@debug@ and #@end-debug@, as well as adding a # to the beginning of each line in-between.

More at https://support.curseforge.com/en/support/solutions/articles/9000197281-automatic-packaging#Replacement-Tokens

The pkgmeta.yaml or yml file

Template is at:

Preparing pkgmeta file:

Testing Release with BigWigMods/packager

 # pwd should be the top-level project
 $ ~/sandbox/github/wow/packager/release.sh
 # creates a .release directory

Steps to get the latest external lib dependencies

Prerequisite

Linking BigWigMods/release.sh

Pull all external libraries

# Make executable (Optional)
$ cmod +x ./dev/pull-extlib.sh
# Runs package.sh and rsync to work directory
./dev/pull-extlib.sh

Or Equivalent

# generate
$ release-wow-addon -cdzulo
# sync with local
$ rsyncw -s .release/ActionbarPlus/Core/ExtLib/WowAce Core/ExtLib/WowAce/