On top of the usual debugging tools available in any web app frontend, there are additional debugging facilities specific to Xivgear. These are accessible from your browser's Javascript console.
The special global variables currentGearSet
and currentSheet
refer to the currently-selected gear set and sheet
respectively.
For example, in the console, you can run currentGearSet.computedStats
to see the entire stats object, including
values that would not otherwise be displayed on the UI.
You can also get the underlying data item for any tabular data, including items, food, and more.
For example, let's say you want to check computed values for a gear set using this method instead of the above.
- Start by using 'inspect element' on the row corresponding to that set on the sets table.
- Then, make sure you have the
<tr>
element selected, rather than a<td>
. - Right-click on the element and select 'Use in console' or your browser's equivalent.
- This should open the debug console, and pre-fill the input with
temp0
(ortemp1
,temp2
, etc) - Run the command
temp0.dataItem
. You can see all properties of the underlying data item for that row. - You can inspect other fields as well. For example,
temp0.dataItem.computedStats
will show all of computed and intermediate states of that set. - To execute a function, e.g. to calcuate a GCD for a 3.5s GCD, you can call functions with the syntax
temp0.dataItem.computedStats.gcdMag(3.5)
(orgcdPhys
).
This works on other tables as well, such as item picker tables.
This also works for table cells (<td>
elements), but instead of .dataItem
, use ._cellValue
.