File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"version" : " 0.2.0" ,
3
3
"configurations" : [
4
+ {
5
+ "name" : " Attach" ,
6
+ "port" : 9229 ,
7
+ "request" : " attach" ,
8
+ "skipFiles" : [
9
+ " <node_internals>/**"
10
+ ],
11
+ "type" : " pwa-node"
12
+ },
4
13
{
5
14
"name" : " Debug Main Process" ,
6
15
"type" : " node" ,
Original file line number Diff line number Diff line change @@ -73,7 +73,10 @@ tuxedo-control-center
73
73
| inc-version-major | Major version increase (updates package.json files) |
74
74
75
75
### Debugging
76
- Debugging of electron main and render process is configured for vscode in .vscode/launch.json
76
+ Debugging of electron main and render process is configured for vscode in ` .vscode/launch.json ` .
77
+ Note that the application must be rebuilt each time a change is made. Usually ` npm run build-ng ` is sufficient.
78
+
79
+ To debug the service, run ` npm run debug-service ` the launch the ` Attach ` target in ` .vscode/launch.json ` .
77
80
78
81
## Screenshots
79
82
![ alt text] ( screenshots/Systemmonitor_TCC.png " ")
Original file line number Diff line number Diff line change 23
23
"build-service" : " tsc -p ./src/service-app && cp ./src/package.json ./dist/tuxedo-control-center/service-app/package.json && run-s bundle-service" ,
24
24
"bundle-service" : " pkg --target node10-linux-x64 --output ./dist/tuxedo-control-center/data/service/tccd ./dist/tuxedo-control-center/service-app/package.json" ,
25
25
"start-service" : " sudo NODE_PATH=\" ./dist/tuxedo-control-center/data/service:${NODE_PATH}\" node ./dist/tuxedo-control-center/service-app/service-app/main.js --start" ,
26
+ "debug-service" : " sudo NODE_PATH=\" ./dist/tuxedo-control-center/data/service:${NODE_PATH}\" node --inspect-brk ./dist/tuxedo-control-center/service-app/service-app/main.js --start" ,
26
27
"build-native" : " node-gyp configure && node-gyp rebuild" ,
27
28
"copy-files" : " run-s copy-package-json copy-dist-files copy-native" ,
28
29
"copy-native" : " mkdir -p ./dist/tuxedo-control-center/service-app/native-lib && cp ./build/Release/TuxedoWMIAPI.node ./dist/tuxedo-control-center/data/service" ,
You can’t perform that action at this time.
0 commit comments