炫意html5
最早CSS3和HTML5移动技术网站之一

Vscode 调试的时候报错

我只是引用了 apscheduler 他就不能调试了

  File "f:\project\Python\Ven\lib\site-packages\apscheduler\schedulers\asyncio.py", line 48, in _configure
super(AsyncIOScheduler, self)._configure(config)
File "f:\project\Python\Ven\lib\site-packages\apscheduler\schedulers\base.py", line 717, in _configure
executor = self._create_plugin_instance('executor', plugin, value)
File "f:\project\Python\Ven\lib\site-packages\apscheduler\schedulers\base.py", line 904, in _create_plugin_instance
raise LookupError('No {0} by the name "{1}" was found'.format(type_, alias))
LookupError: No executor by the name "threadpool" was found

请问 vscode 不支持线程调试吗?

我直接启动程序是可以的

回答

支持的不过要用他自己的,他内部也有这个包的名称

from apscheduler.executors.pool import ThreadPoolExecutor

executors = {
    'default': ThreadPoolExecutor(20) 
}
scheduler = BackgroundScheduler(executors=executors)

炫意HTML5 » Vscode 调试的时候报错

Java基础教程Android基础教程