First time here? Check out the FAQ!

Revision history  [back]

Yes, create a Named Entry Point from the Debug menu and selected the Named Module option.

Alternatively, open the file to run, right click and select Properties, then under Debug/Execute in Environment select the Launch with python -m option. Then debugging that file will launch it as if launched with -m. Using a Named Entry Point probably makes more sense, though, in most cases.