gotcha / ipdb

Integration of IPython pdb
BSD 3-Clause "New" or "Revised" License
1.85k stars 146 forks source link

Different action betweeb ipdb3 interpreter and script #280

Open nistick21 opened 4 months ago

nistick21 commented 4 months ago

There is a python script. import pymongo

And I failed with ipdb "next" on above line.

But 'import pymongo' is working in ipdb3 interpreter such as

ipdb>import pymongo

I don't know why.

please let me know.

sunwaterdev commented 3 months ago

Me too, works when i write "c", but not without ipdb.

sunwaterdev commented 3 months ago

Doesn't Ipdb modify variables or anything else? Maybe it changes the shell or the environment, the location of the script on the file system? This is just speculation, but it poses a real problem.