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

debugging without IDEs e.g. Chrome DevTools #231

Closed
4 tasks done
mtoso opened this issue Jul 26, 2023 · 5 comments
Closed
4 tasks done

debugging without IDEs e.g. Chrome DevTools #231

mtoso opened this issue Jul 26, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@mtoso
Copy link

mtoso commented Jul 26, 2023

Describe the bug

In electron, the --inspect can be used according to the docs https://www.electronjs.org/docs/latest/tutorial/debugging-main-process to open the chrome devtools.
Maybe this functionality is already present, but it is unclear how I can pass that option since all the commands run through the electron-vite package.
In my case, the reason why I would like to have the devtools is that my render process is not doin any direct request to the API, but it talks to the main process through IPC and the main process issues the calls to the API. In this case It would be useful to be able to see the Network tab of the devtools.

Electron-Vite Version

1.0.25

Electron Version

25.3.1

Vite Version

4.4.4

Validations

@mtoso mtoso added the bug Something isn't working label Jul 26, 2023
@alex8088
Copy link
Owner

@mtoso ,

@alex8088 alex8088 added enhancement New feature or request and removed bug Something isn't working labels Jul 26, 2023
@mtoso
Copy link
Author

mtoso commented Jul 26, 2023

Hi,
yes I agree that using the IDE is more convenient but that is for using the debugger. As I mentioned I want to see the network requests and AFIK the debugger view in VSCode does not allow that.
I guess I can try passing --inspect using https://electron-vite.org/guide/dev.html#passing-cli-arguments-to-electron-app.
When you say electron-vite will supports --inspect and --inspect-brk args. do you mean that you will add something specific?

Thanks

@alex8088
Copy link
Owner

@mtoso Yes, it should be supported in the next version.

@mtoso
Copy link
Author

mtoso commented Jul 26, 2023

@alex8088 Thank you, appreciate it.

@alex8088 alex8088 changed the title DevTools for the main process debugging without IDEs e.g. Chrome DevTools Jul 30, 2023
@alex8088
Copy link
Owner

new ver 1.0.26 is out 🎉,

check out

debugging-with-chrome-devtool.mp4

@alex8088 alex8088 pinned this issue Jul 30, 2023
@alex8088 alex8088 unpinned this issue Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants