{NameError}name 'profits' not defined

Hello, I have a value that stays in my watchlist no matter what when I used the debugger. I tried removing all the code except for a couple of print statements. I also tried to remove it from the watchlist manually but it would come back next time I ran the debugger.

 

 

If I don't have a breakpoint then I don't get the NameError, but the value stays in the watchlist

4 comments
Comment actions Permalink

hello, 

I am wondering if this is reproducible with a new project?  

Please upload  logs folder zipped from ***Help | Collect logs and Diagnostic Data***  to the FTP

https://uploads.jetbrains.com/ and please let me know the filename. 

 

What Python version is used? 

 

1
Comment actions Permalink

Hello, so I created a new blank project, ran the debugger, and had no issues. The value didn't show up in the debugger window. I also checked another project and it also had no value in the debugger. However, it still existed in the project I posted above where it initially occurred.

Here is the upload id: 2022_11_17_3fABpq7t4BDYcL3yzpe3qT

It looks like I'm using version 3.9

Thank you

 

0
Comment actions Permalink

Please try the following: 

 

1. Close IDE

2. Delete .idea from the project's root

3. Reopen the project 

 

if it does not make any difference, please try File | Invalidate Caches.

 

Let me know how it goes. 

1
Comment actions Permalink

Deleting the .idea folder worked!

You are the best! Thank you so much!

0

Please sign in to leave a comment.