How to debug the customized models and policies

Hi, I like using vs-code and other IDEs to debug the code. However, it seems when I tried to debug the trainer.train() and step into the .train() function. The debugging tool just skips it. Are there any suggestions for debugging? The following is my code


for I in range(10):
    trainer.train()  # the debugger cannot step into this function.

@GoingMyWay ,

I am also using VSCode. What you have to do is to create a launch_json, i.e. a debugging configuration:


In this configuration you have to set justMyCode: false.

This should fix it.

1 Like

Thank you very much. It works.