We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I used VSCode to debug the PPO2 algorithm. When debugging to line 58 of the file baselines/common/vec_env/subproc_vec_env.py:
baselines/common/vec_env/subproc_vec_env.py
observation_space, action_space = self.remotes[0].recv()
the program has no response and the debugging process cannot continue (As shown below).
My configuration file .vscode/launch.json is shown as follows:
.vscode/launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Python: Module", "type": "python", "request": "launch", "module": "baselines.run", "console": "integratedTerminal", "args": [ "--alg", "ppo2", "--env", "PongNoFrameskip-v4", "--num_timesteps", "2e7", "--save_path", "~/models/pong_20M_ppo2" ], }, { "name": "Python: Current File (Integrated Terminal)", "type": "python", "request": "launch", "program": "${workspaceFolder}/baselines/run.py", "console": "integratedTerminal", "args": [ "--alg", "ppo2", "--env", "PongNoFrameskip-v4", "--num_timesteps", "2e7", "--save_path", "~/models/pong_20M_ppo2" ], } ] }
When I used the command line
python -m baselines.run --alg=ppo2 --env=PongNoFrameskip-v4 --num_timesteps=2e7 --save_path=~/models/pong_20M_ppo2
to run the program in a terminal, there is no problem.
Any helpful suggestions will be highly appreciated. Thank you.
The text was updated successfully, but these errors were encountered:
The problem has been solved. See another issue I wrote: Unable to debug an OpenAI baselines pipeline task #1058.
Sorry, something went wrong.
Let me close this and move discussion to the PR.
No branches or pull requests
I used VSCode to debug the PPO2 algorithm. When debugging to line 58 of the file
baselines/common/vec_env/subproc_vec_env.py
:the program has no response and the debugging process cannot continue (As shown below).
![ppo2_debug_1](https://user-images.githubusercontent.com/31435476/49197695-c8a4ff80-f3ca-11e8-87f0-468bb47250c2.png)
![ppo2_debug_2](https://user-images.githubusercontent.com/31435476/49197696-c8a4ff80-f3ca-11e8-84a0-6297ab5f8868.png)
![ppo2_debug_3](https://user-images.githubusercontent.com/31435476/49197697-c8a4ff80-f3ca-11e8-989e-2ecbba52c6b1.png)
My configuration file
.vscode/launch.json
is shown as follows:When I used the command line
python -m baselines.run --alg=ppo2 --env=PongNoFrameskip-v4 --num_timesteps=2e7 --save_path=~/models/pong_20M_ppo2
to run the program in a terminal, there is no problem.
Any helpful suggestions will be highly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: