python - How do I run grunt in a virtual environment from Pycharm so I can debug my code? -


i running grunt cmd line in virtual environment executing following start virtual environment , start grunt server respectively.

source ./env/bin/activate grunt serve 

how run server pycharm can step though project's code?

this error message i'm getting if try run it. exact same message if try run grunt serve command line , i'm not in virtual environment (i.e. seems pycharm not activating virtualenv before trying start grunt serve):

/usr/local/bin/node --debug-brk=51383 --expose_debug_as=v8debug /usr/local/lib/node_modules/grunt-cli/bin/grunt --gruntfile /users/tcl/_myproject/workspace/myproject_web/gruntfile.js serve debugger listening on [::]:51383 running "bgshell:rundjango" (bgshell) task      running "watch" task     waiting...>> traceback (most recent call last):     >>   file "myproject_web/manage.py", line 13, in <module>     >>     configurations.management import execute_from_command_line     >> importerror: no module named configurations.management     >> error: command failed: python myproject_web/manage.py runserver 0.0.0.0:7000 

i'm guessing it's done here:

enter image description here

pressing environment button gives (i'm not sure enter here, or if correct place configure this)

enter image description here

i've tried launching python virtual environment command line using this:

  1. open application pycharm
  2. find tools in menu bar
  3. create command-line launcher

edit:

i've tried creating new virtaulenv pycharm using pycharm->preferences->[my_project]->project interpreter->[gear_icon]->create virtual env

i set project environment environment , tried start grunt server got same error:

/usr/local/bin/node --debug-brk=51694 --expose_debug_as=v8debug /usr/local/lib/node_modules/grunt-cli/bin/grunt --gruntfile /users/tcl/_my_project/workspace/my_project_web/gruntfile.js serve debugger listening on [::]:51694 running "bgshell:rundjango" (bgshell) task  running "watch" task waiting...>> traceback (most recent call last): >>   file "my_project_web/manage.py", line 13, in <module> >>     configurations.management import execute_from_command_line >> importerror: no module named configurations.management >> error: command failed: python my_project_web/manage.py runserver 0.0.0.0:7000 

it seems virtual environment isn't being activated. how activate virtualenv grunt work (i've tried activating terminal window pycharm isn't "in" activated version).


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -