Closed mizeller closed 1 year ago
quadratic_reward.py
Yes. You can do this with VS code.
Install the Python extension. (Only the last extension in the image below should be enough).
Choose your conda env (pylocoEnv) as the interpreter. (Press Ctrl+Shift+P
and search for the option: Python: Select interpreter
)
Create a lunch file (launch.json
) in the .vscode
folder.
Pass the arguments that you would pass to train with the dog with a quadratic reward. Your launch file should look something like this:
Run the main file:
The debugger should stop at the desired breakpoint:
great thanks! i didn't know about the launch.json step...
Remark: I also had to add the debug argument in the launch.json
, otherwise it would crash on line 67 in scripts.py
.
2 basic questions for getting started with this assignment:
Is there a way to place a debug checkpoint i.e. in
quadratic_reward.py
and stop there? Also, is there a way to use the VSCode testing feature for the tests?Thank you in advance! :-)