7254f7b4d1
Build / Build (macos-latest) (push) Has been cancelled
Build / Build (ubuntu-latest) (push) Has been cancelled
Build / Build (windows-latest) (push) Has been cancelled
Build / Analyze (javascript) (push) Has been cancelled
Build / Analyze (python) (push) Has been cancelled
32 lines
767 B
Markdown
Executable File
32 lines
767 B
Markdown
Executable File
# How to Develop Netron
|
|
|
|
## Debugging
|
|
|
|
Netron can run as both an [Electron](https://electronjs.org) app or a web app.
|
|
|
|
To start the Electron app, install [Node.js](https://nodejs.org) and run:
|
|
|
|
```bash
|
|
git clone https://github.com/lutzroeder/netron
|
|
cd netron
|
|
npm install
|
|
npm start
|
|
```
|
|
|
|
To debug the Electron app, open the folder in [Visual Studio Code](https://code.visualstudio.com) and press <kbd>F5</kbd>. To attach the debugger to the render process select the `Debug` tab and pick `Desktop View` before launching.
|
|
|
|
To build and launch the web app, pick `Browser` in the `Debug` tab or run this command:
|
|
|
|
```bash
|
|
python package.py build start --browse
|
|
```
|
|
|
|
## Validation
|
|
|
|
To validate changes run:
|
|
|
|
```bash
|
|
npm run lint
|
|
npm test [format] # e.g. npm test onnx
|
|
```
|