You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to debug the renderer process by attaching my IDE's debugger directly to Chrome's DevTools, but this is only possible when remote debugging is enabled.
When I tried adding the --remote-debugging-port argument to the nx run my-electron-app:serve command, the process failed with 'remoteDebuggingPort' is not found in schema error.
I tried manually adding this argument as a hardcoded value directly in normalizeArgs(file, options) function of /src/builders/execute/execute.impl.js in my local node_modules/nx-electron folder and that enabled remote debugging as expected.
Describe the solution you'd like
I believe enabling remote debugging can be achieved by:
adding "remoteDebuggingPort" property to /src/builders/execute/schema.json in a similar way to "port" property (it can have no default value, so it's disabled if not explicitly requested); i.e.:
"remoteDebuggingPort": {
"type": "number",
"description": "Enables remote debugging of the renderer process on the defined port."
},
passing this property as an argument to the underlying process in function normalizeArgs(file: string, options: ElectronExecuteBuilderOptions) of /src/builders/execute/execute.impl.ts; i.e.:
if (options.remoteDebuggingPort) {
args.push(`--remote-debugging-port=${options.remoteDebuggingPort}`);
}
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered:
You can use any other port of course.
Via Chrome Debugger you should be able to connect to the frontend process. In my IDE (Rider/Webstorm) I use the "Attach to Nodejs/Chrome" configuration
Is your feature request related to a problem? Please describe.
I would like to debug the renderer process by attaching my IDE's debugger directly to Chrome's DevTools, but this is only possible when remote debugging is enabled.
When I tried adding the
--remote-debugging-port
argument to thenx run my-electron-app:serve
command, the process failed with'remoteDebuggingPort' is not found in schema
error.I tried manually adding this argument as a hardcoded value directly in
normalizeArgs(file, options)
function of/src/builders/execute/execute.impl.js
in my local node_modules/nx-electron folder and that enabled remote debugging as expected.Describe the solution you'd like
I believe enabling remote debugging can be achieved by:
/src/builders/execute/schema.json
in a similar way to "port" property (it can have no default value, so it's disabled if not explicitly requested); i.e.:function normalizeArgs(file: string, options: ElectronExecuteBuilderOptions)
of/src/builders/execute/execute.impl.ts
; i.e.:Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: