Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个在 VSCODE 中如何调试代码的执行呢? #3

Closed
82318179 opened this issue Apr 22, 2024 · 1 comment
Closed

这个在 VSCODE 中如何调试代码的执行呢? #3

82318179 opened this issue Apr 22, 2024 · 1 comment

Comments

@82318179
Copy link

这个在 VSCODE 中如何调试代码的执行呢?

直接F5 调试报错。 没有用于调试JSON 的扩展,我们是否应在市场中找到JSON扩展?

@renxia
Copy link
Member

renxia commented Apr 24, 2024

常规的开发调试可以这样

pnpm dev
npm link

然后即可使用全局命令 m3u8dl 了。代码改动会实时更新。

想在vscode中调试,可以使用tsx工具:

npm i -g tsx

然后可以在 vscode 的 debug 调试终端中执行:

tsx src/cli.ts

@renxia renxia closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants