How To Enable Debug Logging
Enabling DEBUG-level logging for the host platform (TWS or IBG, this does not affect API logs):
- Navigate to the root TWS/IBG installation directory
- Find jts.ini and open in text editor
- Put debug=1 under the [Communication] section
- Reboot TWS/IBG
Setting debug=1 has added benefits in TWS.
- Debug=1 also allows you to enter conIds into a watchlist to resolve them into symbols. Type/paste the conId in an empty watchlist row, add |C (vertical bar, capital C) at the end, and press Enter. Example: 265598|C will resolve immediately to AAPL (exchange will be SMART where available, primary otherwise).
- If the instrument is already present in the watchlist, nothing will happen.
- Additional detail in the “Description” window for an instrument, normally available by right-clicking on an instrument in a watchlist and selecting Financial Instrument Info >> Description from the context menu. Debug=1 will add the conId, min order sizes, market rules (i.e., min price increments and thresholds), all available order types, and all available exchanges to this interface. Changing the behavior of TWS to bring up that Description window on double-click can make it easier to find.
- In TWS, go to Global Configuration >> Display >> Ticker Row
- Change “Double-click on Financial Instrument will” dropdown menu to “Open Contract Details”

