Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

auto-dev-vscode 调试React页面方法 #92

Description

@a793181018

Autodev-vscode React页面代码调试

      由于vscode插件中嵌入React页面时,页面代码无法直接进行断点调试,
  所以只能采用日志调试的形式进行调试.

1.在vscode的插件宿主进程中打开开发者工具如图
微信图片_20241028221337

按快捷键Ctrl+Shift+P打开命令输入栏,输入:
Developer:OpenWebView Developer Toos,如下图
微信图片_20241028221519

在WebView开发人员工具中的控制台中寻找Log日志,建议Log日志输出带上特殊前缀,以便于使用控制台日志过滤选项,屏蔽其他干扰调试的日志,例外,Ts插件层的输出也会出现在这个控制台日志中可以通过不同的前缀来区分ts插件层和React页面层的Log日志
微信图片_20241028221337

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions