How do I start up remote debugging with PyCharm?

I'm trying to get debugging up between PyCharm (on windows host) and a debian virtual host running my django application. The instructions say to install the egg, add the import, and then invoke...

Python multiprocess debugging

I'm trying to debug a simple python application but no luck so far. import multiprocessing def worker(num): for a in range(0, 10): print a if __name__ == '__main__': for i in...

How do I enable post mortem debugging in pydev?

I want to make pydev enter into an interactive console mode whenever my program raises an unhandled exception but I can't figure out how to do it. As it behaves now, the exception is reported and...

PyCharm remote debugging

I have remote Ubuntu server, and I'm trying set up remote debugging. Configured as shown [here][1]. import sys import...

Better Way for remote debugging Odoo/Python in docker container with Eclipse + Pydev?

Is there any better way to describe the below way http://pydev.org/manual_adv_remote_debugger.html Without put the below things import...

Remote Debugging Flask app with Pycharm, Vagrant, Apache and mod_wsgi

I have a Windows computer running vagrant with an ubuntu virtual machine. The ubuntu virtual machine has a Flask app running on apache with mod_wsgi. I've also setup PyCharm to use Vagrant as my...

pydev debugger: warning: trying to add breakpoint to file that does not exist: (will have no effect)

I am using Eclipse with pydev installed. Debugging through pydevd. When running the python script in the server, pydevd configured value PATHS_FROM_ECLIPSE_TO_PYTHON is being used. But If I update...

How can I get Click to ignore unknown options so I don't have to define pydevd variables?

My application is callable from the command line and I use Click to parse the options. However, when I run the same main from PyCharm, I have to add the extra options that PyCharm uses when...

PyCharm remote debug in a docker container

I'm having an hard time trying to figure out how to setup a remote debug of a python app (Flask) running in a Docker container. Specifically I'm using docker-compose, PyCharm professional and...

PyCharm docker debugging error

SEE EDITS I'm trying to get the latest version of PyCharm to successfully debug Django running inside Docker. However I'm having trouble setting up the remote python interpreter and I get an error...

pycharm remote debugging: failed to find free socket

I'm trying to use remote debugging but get this error on pycharm: Error running remoteTest: failed to find free socket My remote host is Ubuntu |(with username and password) and my localhost is...

Debugging Celery with VSCode

I am using VSCode for web-developing with framework Django. There is no questions for debugging Django, but when i try to use Celery - debugger dosn't stop at breakpoints. I use this configuration...

PLC modbus [WinError 10054]: existing connection was forcibly closed by the remote host

I tried the same code earlier, it was perfect running. Later I programmed my "Siemens LOGO 12/24 rce" using "LOGO!Soft Comfort 8.2" and even then it perfectly worked. But when I'm re-programming...

ptvsd remotely debugging from Django's dev server port binding error

Python process we are limited to binding to one IP address. Trying to run python manage.py runserver after adding the ptvsd lines results in an error. Is there a way around this? Traceback (most...

Why SQLAlchemy could not assemble any primary key columns for mapped table?

I am trying to make a flask web application that takes input from the user and saves it into the database (sqlite3). I have defined a class Flight for 'flights' table to register the flights...

Visual Studio Code python debugging timeout

I'm following Microsoft's guide Getting Started with Python in VS Code, but can only run in debug mode once -- the following run will always hit a time out issue. This is the hello.py msg = "Hello...

How to attach to a process with pydevd (*without* using pycharm/eclipse)

The documentation on the github project is pretty scanty, but what I've tried so far is installing pydevd in my virtualenv, running some random script, and then running python...

How to fix 'ORA-19011' error in Python cx_Oracle

HI~ I want to query xml data from Oracle db with cx_Oracle, but it doesn't work with Ora-19011 error message. I think size of query data is larger than string buffer, but i don't know how to solve...

python, closing loop and slack client

I'm listening to the slack channel via slack's RTM API, but when I try to stop listening to it, I get Traceback (most recent call last): File...

Python [WinError 5] Access is denied in Visual Studio 2019

I am trying to add some code to the git-p4.py script and the program is now failing when I attempt to run it in Visual Studio 2019 professional. I get the same error with python3.7.4 or 3.8.0 (I...

Discord Bot and BeautfiulSoup webscraping project returning maximum recursion depth error

First time using Stack Overflow, so apologies if this was formatted horrendously. A few months ago, I decided to start a web scraping project in combination with the discord.py module to generate...

vscode python debugger not working: connection refused

Whenever I try to debug python code, vscode gives an errror and informs me the connection of the debugger was refused. I attached the full stack trace at the bottom I'm on CentOS8 Linux. So far...

VirtualAlloc and Python - Access Violation

Very simple python script is giving me an access violation and I just can't figure out why. import ctypes def Test(): data = bytearray( "\xDE\xAD\xBE\xEF\x0B\xAD\xC0\xDE", 'utf-16' ) ...

Why is this ptvsd package failing to compile?

I'm using Yocto to compile a custom Linux environment, and I have created a recipe for a python package my team wants called ptvsd. This package allows for remote python debugging from Visual...

Python 3.8.2 in VS Code Error - Could not connect to - in start_client

I have a multithread program which I run on: Windows 10 PRO x64 Python 3.8.2 (x64) (Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32) *also try...

problems with working compile and multiprocessing at the same time

i work in VSCode and when I run this file: from multiprocessing import Process def mp_setup_and_run(processes_num, *args): processes = {} for i in range(processes_num): ...

Using VS Code to debug python files. Exception thrown on breakpoint and breakpoint is ignored

Tried with multiple different python files. Every time I try to use the debugger in vs code and set breakpoints the breakpoint gets ignored and exception gets raised and the script continues on....

Odoo crashes when creating several records at the same time

I have created a method where I import a csv file and I create new records with the data it contains. The method works with as csv with around 1000 lines. (The method can create around 1000 new...

Running a loop/multiple lines in vs code python debug console

How do I run a simple loop in VS Code's python debug console? When I try to enter the following: for el in dataset: It gives me the error below. I seem to be able to enter variable names, but...

VSCode Debug Mode sometimes does not work due to a PyDev FileNotFoundError

I'm gonna be honest, I have no clue what I'm looking at here. Out of nowhere my Debug configuration in this VSCode project, a Discord bot, has been spitting out errors when I begin debugging. It...