V 2020.1 debug not working!

Very simple module:

x = 1
y = 2
print(x + y)

Set breakpoint on line 1 (x = 1)

Debug routine by right clicking on routine and selecting "Debug.."

The debugger does not break at line one.  Just continues to run.

Again this is about as basic as it gets.  Not referencing any other libraries.  Using Python 3.6 with Pycharm created virtual environment created from the Python 3.6 install at ...appdata/....  Fairly new Community Edition install.

12 comments
Comment actions Permalink

Please specify your OS.

Is it reproducible in a brand new project?

0
Comment actions Permalink

Thanks for responding.

Windows 10 Enterprise latest updates

Created a brand new project at PyCharm setup and let PyCharm create the its virtualenv using the .../appdata/... for Python 3.6.  Created new python file.  Keyed in the code.  Set breakpoint on line 1.  Ran debugger.  

Same results.  Debugger run did not stop @ breakpoint.


And thanks for looking into this.

0
Comment actions Permalink

The forum doesn't allow attachments so I filed an issue to YouTrack https://youtrack.jetbrains.com/issue/PY-42330
Could you add PYCHARM_DEBUG=True environment variable to your run configuration, reproduce the problem and attach the output to that ticket along with your idea.log file from Help | Show Log in...?

0
Comment actions Permalink

Hey

 

Similar issue here, the breakpoint work, but when app crash I get no stack crash or anything to follow up on crash.

Latest pycharm, py 3.8.xx win10x64

 

Ok Ignore it all above. I had exceptions muted in debugger settings. No idea why. Now all works. Maybe OP has the same issue?

 

0
Comment actions Permalink

I have this problem too. It's not muted exceptions.

0
Comment actions Permalink

I have the same problem. So frustrating when the time is so limited. I moved out of VS2019 to PyCharm2020 for a better Python IDE. I was enjoying as long as I used it,  till the debugging-breakpoints no longer worked. Now I'm adjusting the project back to VS2019. Too many hours spent to make the debugging breakpoints to work. Hope someone posts a solution out soon. 

 

Update: I opened up a new project, copied/pasted the code, debugger started to work again. Probably some unintended keying while coding disabled it?

0
Comment actions Permalink

Genc Ymeri

Hi,

If the issue is reproduced for specific project, please try to delete/rename .idea folder in project root, restart PyCharm and check again. 

If this doesn't help, could you please submit an issue to https://youtrack.jetbrains.com/ with the following data:

1. Code sample if possible

2. Steps to reproduce (where to place the breakpoint

3. Output with PYCHARM_DEBUG=True from Sergey's comment above.

-1
Comment actions Permalink

This has also happened to me.  It's been working previously but I upgraded to 2020.2.1 and now breakpoints are not working anymore.  I'm using Ubuntu OS.

This is for a Django server.  If I set a breakpoint in a normal Python file, it works.

0
Comment actions Permalink

@Mmccormick

Do you have "Gevent compatible" enabled in debugger settings, I wonder?

0
Comment actions Permalink

Andrey Resler Yes I do actually.  I'm also running through Vagrant if that makes a difference.

0
Comment actions Permalink

 

Debug points not working at all 

 

Debug points used to work for Celery Tasks
Celery Beats
Flasks
Basic python scripts
Aiohttp

Not working at all now   

PyCharm 2020.2.3 (Professional Edition)
Build #PY-202.7660.27, built on October 6, 2020

Subscription is active until October 24, 2020
Runtime version: 11.0.8+10-b944.34 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-48-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1966M
Cores: 4
Registry: documentation.show.toolbar=true
Non-Bundled Plugins: com.alayouni.ansiHighlight, com.github.redfoos.logstash-intellij-plugin, com.intellij.ideolog, org.jetbrains.plugins.hocon, net.ashald.envfile, org.exbin.deltahex.intellij, ru.meanmail.plugin.requirements, ru.adelf.idea.dotenv
Current Desktop: ubuntu:GNOME

0
Comment actions Permalink

Kalanamith

Could you please submit a ticket to our tracker (https://youtrack.jetbrains.com/) and provide code sample with the steps to reproduce if possible? Please also provide information about your project interpreter. 

You can limit visibility of the ticket to PyCharm Team group for privacy concerns.

0

Please sign in to leave a comment.