asticode / go-astilectron-demo

Discover the power of Astilectron through a demo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How should I debug a project during its development?Does the command "astilectron-bundler -v" need to be used every time?

opened this issue · comments

How to debug a project during the development process? Do you need to use the "astilectron-bundler -v" command every time? If this is the case, it may take me a lot of time. Is there any good solution?

Once you have executed astilectron-bundler -v for the first time (and if neither electron or astilectron versions change) you don't need to use the bundler to test things out.

All you need to do is go run *.go -v and that should be enough.

Let me know if that works.

For me, changes in HTML files are only being rendered when the bundler is run. I'm using the bootstrapper with my BaseDirectoryPath set to deps. If I edit the files within deps that are generated, all I need to do is refresh the page. Editing from resources requires re-bundling.

If I don't specify a BaseDirectoryPath, editing within the resources still doesn't make a difference until re-bundling. I'm running with go run *.go -v

@ndawg you're definitely right.

My next idea would be not to use the bundler for development purposes. Would that make sense?

@asticode Problem solved! thank you