Hi,

First time posting here, so please be gentle. šŸ˜Š

I am trying to use Lean CLI for python using VS Code. But the debugger does not stop at the breakpoint.Ā 

I went through various help articles and documentations, and also tried searching through google but still could not find the solution. It works fine if one has simple boilerplate example.Ā 

I went here to look for information but could not resolve it

here is an example code that I am usingĀ 

from AlgorithmImports import *
class GeekyTanCat(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2021, 6, 24)
        self.SetCash(100000) 
        self.Schedule.On(self.DateRules.EveryDay(), self.TimeRules.At(16, 1), self.TradingAfterMarketClose)
        self.AddEquity("SPY")
        

    def OnData(self, data):
        self.Debug("In OnData Function")
        pass

    def TradingAfterMarketClose(self):
        self.Debug("In TradingAfterMarketClose Function")
        pass
        
        
        

I am trying to stop the debugger at ā€œself.Debug ā€¦ā€ but it never stops, neither it gives me any error for me to resolve it.

I would highly request somebody to make a You tube video on a somewhat complex tutorial. The one here does not tell much

(13) Debugging Python Algorithmic Trading Strategies in VSCode - LEAN CLI - YouTube

Please let me know if this is not the right place to post it, I would post it at the right place.

Thank you,

Avi