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

求助如何在 PHPStorm 开启 Debug 模式? #402

Open
keyoftime opened this issue Jun 23, 2023 · 4 comments
Open

求助如何在 PHPStorm 开启 Debug 模式? #402

keyoftime opened this issue Jun 23, 2023 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@keyoftime
Copy link

keyoftime commented Jun 23, 2023

Describe the problem you confuse

我按照官网教学去设定,然后在 Debug 模式下执行,但 Breakpoint 一个都没有生效,想请求一下是哪里出了问题。

Screenshot 2023-06-23 at 9 22 18 PM Screenshot 2023-06-23 at 9 15 15 PM Screenshot 2023-06-23 at 9 17 00 PM Screenshot 2023-06-23 at 9 17 15 PM
@keyoftime keyoftime added the help wanted Extra attention is needed label Jun 23, 2023
@keyoftime
Copy link
Author

keyoftime commented Jun 26, 2023

問題我自己解決了,原來 debug 的參數不是填在「Edit Configurations」。
直接在 package.json 的 scripts 填上就可以,希望遇到過遇坑的能幫助一下。

"scripts": {
.......
"dev": "electron-vite dev -w --sourcemap --remote-debugging-port=9222",
.......
},

@caoxiemeihao
Copy link
Member

可以的,可以考虑写到官方文档里
帮助更多的用户

@watchingfun
Copy link

問題我自己解決了,原來 debug 的參數不是填在「Edit Configurations」。 直接在 package.json 的 scripts 填上就可以,希望遇到過遇坑的能幫助一下。

"scripts": { ....... "dev": "electron-vite dev -w --sourcemap --remote-debugging-port=9222", ....... },

electron-vite 这个哪里来的,我copy过来提示找不到该程序呢

@caoxiemeihao
Copy link
Member

我去,我没看到 electron-vite 这个命令
这个命令是一个山寨包提供的东西 electron-vite-vue 模板直接用 vite 命令启动,无侵入式的命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants