We’re excited to announce that debugging is officially live in the Algo Lab. This new tool allows you to place breakpoints in your code, step through, and inspect variable values at different execution stages throughout your algorithm. The tool is accessible from the right side of the terminal in any open project.
To help you get familiar with the debugger, we’ve outlined four simple steps below:
- First, open the debugging tab and set breakpoints by clicking on the desired line number, which should become highlighted in grey.
- Next, you will see a "Watch" list. Enter the names of the variables you want to track here.
- Then, click "Backtest" and a new backtest with the heading [Debugging] will appear.
- Back in the terminal view, you can either click the play button to continue to the next breakpoint or the arrow for line-by-line execution. Click the stop button to exit the debug session.
Debugging for backtesting is provided free to all community users. We’re thrilled to offer this as the newest addition to our platform and look forward to continue providing additional tools in the future to improve your development experience. As always -- happy coding!
Jared Broad
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!