简体   繁体   中英

Pycharm python debugger cannot run files containing relative import

I tried to mark as Source root the folder that contains the file to debug, but unsuccessful.

[Pycharm link] https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010615139-python-debugger-does-not-work-with-files-containing-relative-import

Below is my debug config: 在此处输入图像描述

I am using Pycharm 2021.1 (Porfessional Edition)

You need to change the Working directory dropdown to.../pythonProject. Now your working dir is timeserio/batches/chunked where there is no temeserio package inside it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM