当前位置:首页>python>PyCharm配置ParaView Python开发环境(debug+源码跳转+代码提示)

PyCharm配置ParaView Python开发环境(debug+源码跳转+代码提示)

  • 2026-03-25 18:50:46
PyCharm配置ParaView Python开发环境(debug+源码跳转+代码提示)

本教程适用于ParaView 6.0.1 版本,已在Windows 10和Ubuntu 24.04系统上通过测试。其他版本请根据实际情况调整操作。我相信VSCode里面的操作也大差不差。


问题背景

为什么要在Pycharm中配置ParaView Python开发环境?

  • 代码提示:PyCharm 的智能提示功能可以大幅提升开发效率,尤其是对于复杂的 ParaView API。
  • 调试支持:在 PyCharm 中可以设置断点、单步调试,方便排查问题。
  • 集成开发环境:PyCharm 提供了强大的项目管理、版本控制和测试工具,适合进行大型项目开发。

遇到的问题

ParaView 自带的 pvpython.exe 是一个功能完整的 Python 解释器,但直接在 PyCharm 中配置会遇到以下问题:

  1. 无法识别解释器:PyCharm 报错 "Python is broken" 或 "wrong version"
  2. 代码无法提示

本教程将逐一解决这些问题。

准备工作

确保已安装ParaView 6.0.1,并添加到系统环境变量中。可以在命令行输入 pvpython 来验证是否可用。

较老的Linux系统可能无法运行ParaView 6.0.1(缺乏高版本GLIBC),可以通过创建Ubuntu 24.04的docker容器来解决(我就是这么干的)。

配置 Python 解释器

原理

Pycharm无法识别pvpython。因此我们重新安装一个同版本的解释器,并将其配置为PyCharm的Python解释器。然后将ParaView的Python库路径加入PYTHONPATH环境变量,这样就可以在PyCharm中使用ParaView的Python API了。这样做相当于弃用了pvpython,即使删了pvpython,也不会影响Pycharm中的程序运行。

参考:paraview.simple Namesspace in IDE (e.g. Pycharm) - ParaView Support - ParaView

步骤

ParaView 6.0.1使用Python 3.12.7解释器。

在Windows系统上,下载python-3.12.7-*.exe。安装即可。

在Linux系统上,可以通过pyenv安装,也可以源码编译安装,我选择的是源码编译安装:

tar xvf Python-3.12.7.tgzcd Python-3.12.7mkdir build && cd build../configure \  --prefix=/opt/python3.12.7 \  --enable-optimizations \  --enable-shared \  --with-ensurepip=installmake -j && make installexport LD_LIBRARY_PATH=/opt/python3.12.7/lib:$LD_LIBRARY_PATHexport PATH=/opt/python3.12.7/bin:$PATH

终端输入python3,如果显示Python 3.12.7版本信息,则说明安装成功。

建议用venv装一个虚拟环境,这样方便以后安装第三方库。

打开Pycharm,将虚拟环境的python解释器路径(如~/myvenv/bin/python)添加到PyCharm的Python解释器列表中,并选择它作为当前项目的解释器。

此时代码尚无法运行,因为ParaView的Python库路径还没有加入PYTHONPATH环境变量中。

在Pycharm中,进入Edit Configurations,找到当前运行的配置,在Environment variables中添加:PYTHONPATH=E:\ParaView 6.0.1\bin\Lib\site-packages(Windows系统是这个路径,根据实际情况调整)

到这一步就可以运行ParaView的Python脚本了,也可以进行代码调试了。

但代码提示和源码跳转仍然存在问题。下面我们将解决这个问题。

配置代码提示

步骤 1:标记 ParaView 库目录为 Sources Root

  1. 打开 File → Settings → Project: [your_project] → Project Structure
  2. 点击 + Add Content Root
  3. 添加目录:
    E:\ParaView 6.0.1\bin\Lib\site-packages
  4. 在目录树中找到该路径,选中它,此时上方Mark as后面的选项会高亮,选择Sources
  5. 点击 OK 保存

此步骤可以让部分静态定义的函数(如 GetAnimationScenevtk_to_numpy)获得代码提示,也可以实现源码跳转。

然而,许多函数(如 XMLPolyDataReaderThresholdSphere 等)是运行时动态生成的,不在静态的 .py 文件中定义。因此 PyCharm 无法进行静态分析,导致没有代码提示。

解决方案是生成 Stub 文件.pyi),让 PyCharm 能够识别这些动态函数。

步骤 2:创建 Stub 生成脚本

创建文件 generate_stubs.py,内容如下:

"""生成 ParaView simple 模块的完整类型提示文件包含函数返回类型和类方法"""import osimport inspectfrom paraview import simplefrom paraview import servermanagerdefget_return_type(func_name):"""根据函数名推断返回类型"""    return_types = {# Animation'GetAnimationScene''AnimationScene','GetTimeKeeper''TimeKeeper',# Views'GetActiveView''View','GetActiveViewOrCreate''View','CreateRenderView''RenderView','GetRenderView''RenderView','CreateView''View',# Sources/Filters/Readers'GetActiveSource''Proxy','FindSource''Proxy','GetSources''Dict[str, Proxy]',# Representation'Show''Representation','GetRepresentation''Representation','GetDisplayProperties''Representation',# Camera'GetActiveCamera''Camera',# 其他'servermanager.Fetch''vtkDataObject',    }# Reader 类返回 Proxyif'Reader'in func_name:return'Proxy'# Writer 类返回 Proxyif'Writer'in func_name:return'Proxy'# Source/Filter 类(首字母大写的函数)if func_name[0].isupper() and func_name notin return_types:return'Proxy'return return_types.get(func_name, 'Any')defget_class_methods(cls):"""获取类的所有方法"""    methods = []for name in dir(cls):if name.startswith('_'):continuetry:            obj = getattr(cls, name)if callable(obj):                methods.append(name)except:passreturn methodsdefgenerate_paraview_stubs():"""生成完整的 stub 文件"""# 收集 simple 模块中的符号    all_names = [name for name in dir(simple) ifnot name.startswith('_')]    functions = []    classes = []    variables = []for name in all_names:try:            obj = getattr(simple, name)if inspect.isclass(obj):                classes.append((name, obj))elif callable(obj):                functions.append((name, obj))else:                variables.append((name, obj))except Exception as e:            print(f"跳过 {name}{e}")# 生成 stub 内容    lines = ['"""','ParaView simple 模块类型提示','自动生成的 stub 文件(包含返回类型)','"""','','from typing import Any, Optional, List, Tuple, Union, Dict','','# ========== 基础类型定义 ==========','class Proxy:','    def UpdatePipeline(self, time: float = ...) -> None: ...','    def UpdatePropertyInformation(self) -> None: ...','    def GetProperty(self, name: str) -> Any: ...','    def SetPropertyWithName(self, name: str, value: Any) -> None: ...','    def ListProperties(self) -> List[str]: ...','    def GetDataInformation(self) -> Any: ...','','class View:','    ViewSize: List[int]','    UseOffscreenRendering: bool','    UseOffscreenRenderingForScreenshots: bool','    def ResetCamera(self) -> None: ...','    def Update(self) -> None: ...','','class RenderView(View):','    CameraPosition: List[float]','    CameraFocalPoint: List[float]','    CameraViewUp: List[float]','    Background: List[float]','','class Representation:','    Visibility: int','    ColorArrayName: List[str]','    Opacity: float','    def SetScalarBarVisibility(self, view: View, visible: bool) -> None: ...','','class AnimationScene:','    StartTime: float','    EndTime: float','    NumberOfFrames: int','    PlayMode: str','    def UpdateAnimationUsingDataTimeSteps(self) -> None: ...','    def Play(self) -> None: ...','    def Stop(self) -> None: ...','    def GoToFirst(self) -> None: ...','    def GoToLast(self) -> None: ...','    def GoToNext(self) -> None: ...','    def GoToPrevious(self) -> None: ...','    def SetAnimationTime(self, time: float) -> None: ...','','class TimeKeeper:','    Time: float','    TimestepValues: List[float]','','class Camera:','    Position: List[float]','    FocalPoint: List[float]','    ViewUp: List[float]','    def Azimuth(self, angle: float) -> None: ...','    def Elevation(self, angle: float) -> None: ...','    def Roll(self, angle: float) -> None: ...','    def Zoom(self, factor: float) -> None: ...','',    ]# 添加原有的类定义    lines.append('# ========== ParaView 类 ==========')for name, obj in sorted(classes, key=lambda x: x[0]):if name notin ['Proxy''View''RenderView''Representation''AnimationScene''TimeKeeper''Camera']:            lines.append(f'class {name}:')            lines.append(f'    def __init__(self, *args: Any, **kwargs: Any) -> None: ...')# 添加类方法try:                methods = get_class_methods(obj)for method in methods[:10]:  # 限制方法数量                    lines.append(f'    def {method}(self, *args: Any, **kwargs: Any) -> Any: ...')except:pass            lines.append('')# 添加函数(带返回类型)    lines.append('# ========== Functions ==========')for name, obj in sorted(functions, key=lambda x: x[0]):        return_type = get_return_type(name)try:            sig = inspect.signature(obj)            params = str(sig)            lines.append(f'def {name}{params} -> {return_type}: ...')except (ValueError, TypeError):            lines.append(f'def {name}(*args: Any, **kwargs: Any) -> {return_type}: ...')    lines.append('')# 添加变量    lines.append('# ========== Variables ==========')for name, obj in sorted(variables, key=lambda x: x[0]):        lines.append(f'{name}: Any')# 写入文件    stub_content = '\n'.join(lines)    output_path = os.path.join(        os.path.dirname(simple.__file__),'__init__.pyi'    )with open(output_path, 'w', encoding='utf-8'as f:        f.write(stub_content)    print(f'✅ Stub 文件已生成: {output_path}')    print(f'   函数: {len(functions)}')    print(f'   类:   {len(classes)}')return output_pathif __name__ == '__main__':    generate_paraview_stubs()

运行这个脚本。预期输出:

✅ Stub 文件已生成: E:\ParaView 6.0.1\bin\Lib\site-packages\paraview\simple\__init__.pyi   函数: 200+   类:   10+   变量: 若干

步骤 3:重建 PyCharm 索引

  1. 在 PyCharm 中,点击 File → Invalidate Caches...
  2. 勾选 Invalidate and Restart
  3. 等待 PyCharm 重启并完成索引

验证配置

from paraview.simple import *
  • 输入 XML 后按 Ctrl + Space,应出现 XMLPolyDataReader 等提示

  • 输入 Thre 后按 Ctrl + Space,应出现 Threshold 提示

  • 输入 Gene 后按 Ctrl + Space,应出现 GenerateRGBPoints 提示(参数名完整)

  • 按住 Ctrl 点击函数名,可跳转到定义或 stub 文件

小技巧

在导入simple模块之前,添加以下代码,可以启用headless/batch模式(避免打开GUI,干扰程序运行):

from paraview import optionsoptions.batch = True

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 13:23:54 HTTP/2.0 GET : https://f.mffb.com.cn/a/479988.html
  2. 运行时间 : 0.122905s [ 吞吐率:8.14req/s ] 内存消耗:4,971.07kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=40c15bf0e836949782796c7c2ff79a02
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000464s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000600s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.004210s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.001303s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000525s ]
  6. SELECT * FROM `set` [ RunTime:0.002194s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000600s ]
  8. SELECT * FROM `article` WHERE `id` = 479988 LIMIT 1 [ RunTime:0.002233s ]
  9. UPDATE `article` SET `lasttime` = 1774589034 WHERE `id` = 479988 [ RunTime:0.004566s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000245s ]
  11. SELECT * FROM `article` WHERE `id` < 479988 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000424s ]
  12. SELECT * FROM `article` WHERE `id` > 479988 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000392s ]
  13. SELECT * FROM `article` WHERE `id` < 479988 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000839s ]
  14. SELECT * FROM `article` WHERE `id` < 479988 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.034078s ]
  15. SELECT * FROM `article` WHERE `id` < 479988 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.003388s ]
0.124620s