Ask Your Question

django project debug

asked 2021-09-13 03:16:08 -0500

piscvau gravatar image

updated 2021-09-13 09:11:56 -0500

I created a django project but I need to debug some management commands which are outside of django and thereofre nee to be ran with python3 -m mycmmand. Can I create a launch configuration for this command?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2021-09-13 09:11:49 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-09-13 03:16:08 -0500

Seen: 7 times

Last updated: Sep 13