OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to run a script before running/debugging a python script by vscode?

  • Thread starter Thread starter megayeye
  • Start date Start date
M

megayeye

Guest
I am working with ROS. ROS needs to source a few scripts e.g., /opt/ros/noetic/setup.sh before running any python programs. Otherwise I cannot import roslib or similar stuffs.

When I debug with vscode, is there any way to let vscode to source this script automatically before starting the debugger?
<p>I am working with ROS. ROS needs to source a few scripts e.g., <code>/opt/ros/noetic/setup.sh</code> before running any python programs. Otherwise I cannot import <code>roslib</code> or similar stuffs.</p>
<p>When I debug with vscode, is there any way to let vscode to source this script automatically before starting the debugger?</p>
 

Latest posts

Online statistics

Members online
0
Guests online
6
Total visitors
6
Top