Hello
I’ve noticed that results output from debug lines does not appear on live testing, only on backtesting.
Have I got this right or is there something missing in my understanding?
Please let me know
QUANTCONNECT COMMUNITY
Hello
I’ve noticed that results output from debug lines does not appear on live testing, only on backtesting.
Have I got this right or is there something missing in my understanding?
Please let me know
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Mia Alissi
Based on the information provided in the extracts, it seems that you are correct. Debugging lines are primarily used for backtesting. The debugging tool allows you to slow down the code execution, step through the program line-by-line, and inspect the variables to understand the internal state of the program during backtesting.
However, for live algorithms, you can use log statements to record string messages to a file for analysis. These records can assist in debugging logical flow errors in the project code.
Here is an example of how you can use log statements in Python:
For more information about debugging and logging, you can refer to the Debugging and Backtest Debugging sections in the QuantConnect documentation.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
John Hookway
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!