QuantConnect / lean-cli

CLI for running the LEAN engine locally and in the cloud
https://www.lean.io/cli
Apache License 2.0
194 stars 99 forks source link

How can I go to debug mode for Python? #321

Closed avatarstones closed 1 year ago

avatarstones commented 1 year ago

Don't want to buy Pycharm pro. Simply want to use pdb set_trace do debug. Could you please let me know how can I turn on pdb set_trace? Thanks.

When I tried lean backtest "xxx" --debug local-platform got error: Error: Invalid value for '--debug': 'local-platform' is not one of 'pycharm', 'ptvsd', 'vsdbg', 'rider'.

Martin-Molinero commented 1 year ago

Hey @avatarstones! Please visit https://www.quantconnect.com/docs/v2/lean-cli/backtesting/debugging for steps for local debugging