Hi,
I'm on VS code on a Windows 11 machine and I'm trying to debug my project locally. I went through the steps here but it says “Sorry due to security issues debugging cloud projects from the Local Platform is not currently supported”
QUANTCONNECT COMMUNITY
Hi,
I'm on VS code on a Windows 11 machine and I'm trying to debug my project locally. I went through the steps here but it says “Sorry due to security issues debugging cloud projects from the Local Platform is not currently supported”
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
Debugging QuantConnect projects locally on VS Code has some limitations, especially when dealing with cloud projects. Here are some steps and tools you can use to debug your algorithm effectively:
Understand Local Debugging Limitations: Due to security concerns, debugging cloud projects locally is not supported. This means you cannot use traditional debugging tools like breakpoints in VS Code for cloud projects.
Use QuantConnect's Built-in Tools:
log
method to record messages during your algorithm's execution. This can help you track the flow and state of your algorithm.debug
method for real-time updates in the Cloud Terminal.Profiling: Use Python Profilers to find performance bottlenecks in your algorithm. This involves enabling profiling at the start and analyzing the results at the end of the algorithm.
Review Logs and Errors: Check the logs and error messages in the Cloud Terminal for runtime errors or unexpected behavior.
Consult Documentation: Refer to QuantConnect's documentation for more detailed guidance on using these tools effectively.
By leveraging these tools and techniques, you can effectively debug and optimize your QuantConnect algorithms even with the limitations of local debugging.
Sources: Debugging Tools - QuantConnect.com, Debugging - QuantConnect.com
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.
David Maucher
So for which cases is local debugging on VS code then, if not for cloud projects? There is an entire docs page dedicated to this:
Am I missing something?
Jared Broad
Debugging local backtests with local data sources is supported (those docs linked). Debugging to cloud data sources aren't supported sorry, but you can debug it in the cloud.
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.
David Maucher
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!