Is it possible to debug (e.g. stop on breakpoints) an external Django app 
when running a Django server in a VM via remote debugging in Pycharm? I am 
able to run and debug the Django server using PyCharm's remote debugger, 
and the app runs as expected (changes to the local source code are 
reflected immediately in the server responses), but I cannot debug the app 
in the same PyCharm instance running the server.

My directory structure:

django-app/ setup.py ... (code) django-server/ manage.py ... (code)

In my requirements file I'm loading the django-app in 'editable' mode:

-e /django-app

I have tried:


   - opening the django-server as the project root and then adding 
   django-app as a new project in the same window, and,
   - opening the shared root directory as the project root and setting 
   django-server/ as the source root & working dir for the server.


In both cases, when I run the server in debug mode, I see the following 
message if I have any breakpoints set in the django-app:

pydev debugger: warning: trying to add breakpoint to file that does not 
exist: ... (local path that looks correct)

I would appreciate any ideas as to how to properly step through the 
django-app component, thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ef3ceddd-715f-4785-b715-b222bf24d4d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to