First time here? Check out the FAQ!
1

Package debugging
 

I am writing a system that contains two packages. I want to set it up, perhaps with File Properties?, where if I start debug in any of the parts of the packages that the system runs "-m package args..." for any of the individual modules in the package.

Is there a way to set up two Launch Configurations that I can assign the the individual files in each package?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Bill Waggoner's avatar
145
Bill Waggoner
asked 4 years ago

Comments

see more comments

1 Answer

0

The Environment under Debug/Execute in File Properties can be set to Launch with 'python -m' for any file. Also, you can create a Named Entry Point from the Debug menu and use the "Named Module" option to run a module by name from that. So probably if I'm understanding your question correctly you would create two Named Entry Points, one for each package.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 4 years ago
link

Comments

Named Module works perfectly, thank you!

Bill Waggoner's avatar Bill Waggoner (4 years ago)
see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)