Back

About debugging

Hello All,
Is there any way use a debugger in QuantConnect? I'd like to use breakpoints and a watchlist.
Update Backtest








There is no debugger as far as I know - your best bet is to use carefully placed Log or Debug calls. I would very much love to have debugger functionality too!
1

Argh?!  No debugger/debugging?  As a software engineer, trying to work without a debugger makes QC a non-starter.  log/debug comments for debugging put me back to the 1982 TRS-80 days.  Major bummer.  At least with NinjaTrader I can use Visual Studio to debug.  I may have to stick with that platform instead.  :(

0

You can basically up your own local environment and run Lean inside MSVS to have regular breakpoint debugging (there are instructions floating around both in forums and some documentation IIRC). It does take a bit more effort to get started, primarily because it requires you to download data.

I find the lack of breakpoints to be OK depending on what I do. If I can write components and test them in NUnit outside Lean then I will do that to get regular breakpoints. Debugging the "glue layer" (QCAlgorithm) with Debug/Log statements isn't perfect, but it's workable.

0

Update Backtest





0

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.


Loading...

This discussion is closed