First time here? Check out the FAQ!

Revision history  [back]

I am using the second method to debug a python script to be ran as sudo . This does not seem to allow parparse to parse arguments. I get the following message

(myvenv) odile@odile-GE72-2QC:~/Documents/dev_logiciels$ /usr/lib/wingpro8/wingdb django_clone.py gitbidon https://gitlab.com/skirando/family-recipes  dev
Creating meta importer for domain dbg
winghome=/usr/lib/wingpro8
Created meta importer
Adding code directory to merge importer: /usr/lib/wingpro8/bin/dbg/src
Adding code directory to merge importer: /usr/lib/wingpro8/src
Trying to import netserver from ['/usr/lib/wingpro8/bootstrap', '/usr/lib/wingpro8/bootstrap/__pycache__', '/usr/lib/wingpro8/bin/dbg/src', '/usr/lib/wingpro8/bin/dbg/src/debug', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver/__os__', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver/__os__/osx', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver/__os__/win32', '/usr/lib/wingpro8/bin/dbg/src/__pycache__', '/usr/lib/wingpro8/bin/dbg/src/wingbase', '/usr/lib/wingpro8/bin/dbg/src/wingbase/pexpect', '/usr/lib/wingpro8/bin/dbg/src/wingbase/pexpect/ptyprocess', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__pycache__', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__os__', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__os__/osx', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__os__/win32', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver/__os__/linux-x64', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__os__/linux-x64', '/usr/lib/wingpro8/src', '/usr/lib/wingpro8/src/debug', '/usr/lib/wingpro8/src/debug/__pycache__', '/usr/lib/wingpro8/src/debug/tserver', '/usr/lib/wingpro8/src/debug/tserver/__pycache__', '/usr/lib/wingpro8/src/debug/client', '/usr/lib/wingpro8/src/wingutils', '/usr/lib/wingpro8/src/testing', '/usr/lib/wingpro8/src/testing/runners', '/usr/lib/wingpro8/src/external', '/usr/lib/wingpro8/src/external/pygments', '/usr/lib/wingpro8/src/external/pygments/pygments', '/usr/lib/wingpro8/src/external/pygments/pygments/lexers', '/usr/lib/wingpro8/src/external/pygments/pygments/styles', '/usr/lib/wingpro8/src/external/pygments/pygments/formatters', '/usr/lib/wingpro8/src/external/pygments/pygments/filters']
Traceback (most recent call last):
  File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 33, in _ParseSingleArg
  File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 62, in _HostportTransform
ValueError: substring not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 637, in StartDebug
  File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 318, in _ParseArgv
  File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 45, in _ParseSingleArg
SystemExit: 2
(myvenv) odile@odile-GE72-2QC:~/Documents/dev_logiciels$

whereas the same code ran within wing without sudo parses the argument correctly.

I am using the second method to debug a python script to be ran as sudo . This does not seem to allow parparse to parse arguments. I get the following message

(myvenv) odile@odile-GE72-2QC:~/Documents/dev_logiciels$ /usr/lib/wingpro8/wingdb django_clone.py gitbidon https://gitlab.com/skirando/family-recipes  dev
Creating meta importer for domain dbg
winghome=/usr/lib/wingpro8
Created meta importer
Adding code directory to merge importer: /usr/lib/wingpro8/bin/dbg/src
Adding code directory to merge importer: /usr/lib/wingpro8/src
Trying to import netserver from ['/usr/lib/wingpro8/bootstrap', '/usr/lib/wingpro8/bootstrap/__pycache__', '/usr/lib/wingpro8/bin/dbg/src', '/usr/lib/wingpro8/bin/dbg/src/debug', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver/__os__', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver/__os__/osx', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver/__os__/win32', '/usr/lib/wingpro8/bin/dbg/src/__pycache__', '/usr/lib/wingpro8/bin/dbg/src/wingbase', '/usr/lib/wingpro8/bin/dbg/src/wingbase/pexpect', '/usr/lib/wingpro8/bin/dbg/src/wingbase/pexpect/ptyprocess', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__pycache__', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__os__', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__os__/osx', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__os__/win32', '/usr/lib/wingpro8/bin/dbg/src/debug/tserver/__os__/linux-x64', '/usr/lib/wingpro8/bin/dbg/src/wingbase/__os__/linux-x64', '/usr/lib/wingpro8/src', '/usr/lib/wingpro8/src/debug', '/usr/lib/wingpro8/src/debug/__pycache__', '/usr/lib/wingpro8/src/debug/tserver', '/usr/lib/wingpro8/src/debug/tserver/__pycache__', '/usr/lib/wingpro8/src/debug/client', '/usr/lib/wingpro8/src/wingutils', '/usr/lib/wingpro8/src/testing', '/usr/lib/wingpro8/src/testing/runners', '/usr/lib/wingpro8/src/external', '/usr/lib/wingpro8/src/external/pygments', '/usr/lib/wingpro8/src/external/pygments/pygments', '/usr/lib/wingpro8/src/external/pygments/pygments/lexers', '/usr/lib/wingpro8/src/external/pygments/pygments/styles', '/usr/lib/wingpro8/src/external/pygments/pygments/formatters', '/usr/lib/wingpro8/src/external/pygments/pygments/filters']
Traceback (most recent call last):
  File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 33, in _ParseSingleArg
  File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 62, in _HostportTransform
ValueError: substring not found
found

During handling of the above exception, another exception occurred: occurred:

Traceback (most recent call last): File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 637, in StartDebug File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 318, in _ParseArgv File "/usr/lib/wingpro8/bin/dbg/src/debug/tserver/startdebug.py", line 45, in _ParseSingleArg SystemExit: 2 (myvenv) odile@odile-GE72-2QC:~/Documents/dev_logiciels$

odile@odile-GE72-2QC:~/Documents/dev_logiciels$

whereas the same code ran within wing without sudo parses the argument correctly.