First time here? Check out the FAQ!

Revision history  [back]

One way would be to use wingdbstub to initiate debug as described in http://wingware.com/doc/debug/debugging-externally-launched-code

Another way would be to initiate debug with wingdb as described in http://wingware.com/doc/debug/wingdb (this method doesn't require adding an import to your code).  You would add sudo before wingdb.Neither of these starts the debug process from within Wing, but you could set up an OS Command to start the process in combination with one of the above methods.

It would also be possible to set up a script that invokes sudo python and passes in all args and set that as Python Executable in Wing, but this would only work if sudo doesn't require typing in a password.

One  One way would be to use wingdbstub to initiate debug as described in http://wingware.com/doc/debug/debugging-externally-launched-code

Another http://wingware.com/doc/debug/debugging-externally-launched-codeAnother way would be to initiate debug with wingdb as described in http://wingware.com/doc/debug/wingdb (this method doesn't require adding an import to your code).  You would add sudo before wingdb.Neither of these starts the debug process from within Wing, but you could set up an OS Command to start the process in combination with one of the above methods.

It methods.It would also be possible to set up a script that invokes sudo python and passes in all args and set that as Python Executable in Wing, but this would only work if sudo doesn't require typing in a password.