Pycharm Python Debugger does not see on Breakpoint

I am trying to debug the codes but debugger does not stop on breakpoint and gives the output below

"Connected to pydev debugger (build 193.6015.41)

Process finished with exit code 0"

 

I reinstalled the pycharm and python. it did not work

4 comments
Comment actions Permalink

Is it reproducible with some simple code snippets?
If not, it is likely a code-specific problem, and it would be great if you could provide an example that we can use for reproducing.

0
Comment actions Permalink

Hi

Thank you for your reply. This is the code that i tried breakpoint. It was working like a month ago but it does not work right now

 


class User:
def __init__(self, name, engagement):
self.name = name
self.engagement_metrics = engagement
self.score = 0

def __repr__(self):
return f'<user {self.name}'


def email_engaged_user(user):
"""

:rtype: object
"""
try:
user.score = perform_calculation(user.engagement_metrics)
except KeyError:
print("Incorrect values provided")
else:
if user.score > 500:
send_engagement_notificiaton(user)


def perform_calculation(metrics):
return metrics["click"] * 5 + metrics["hits"] * 2


def send_engagement_notificiaton(user):
print(f'Notification sent to {user}')
0
Comment actions Permalink

Could you specify the line where I should put a breakpoint?

0
Comment actions Permalink

And just to clarify, the issue doesn't reproduce with simple code snippets, right?

0

Please sign in to leave a comment.