jaydadhania08
Member
The
My concern is this:
Application Settings > Rendering Engine tab allows to turn on Developer Tools, and when the application starts, the chromium instance is started with arg --remote-debugging-port=9000 and devtools can be accessed at http://localhost:9000My concern is this:
- I have developed an app (let’s call it AppX) that make use of DevTools protocol to interact with cross-site cookies and perform some other steps. My JS code connects to a websocket on localhost:9000 and execute commands as specified in DevTools protocol.
- Now, I want to develop a second app (let’s call it AppY) that also requires DevTools protocol.
- BUT ExeOutput uses a fixed port 9000 for remote debugging, so this fails when I run both apps at the same time.
- For Example, when I start AppX first, it takes up port 9000 for devtools.
- While AppX is still running, I start AppY - but port 9000 is already in use by AppX. So AppY now cannot access devtools (because
localhost:9000still points to AppX’s devtools). AppX continues to function normally.
- For the AppY, I tried adding
--remote-debugging-port=9001in theAdditionalChromiumArgsfield. That did not work,localhost:9001still refuses to connect. - With the added
--remote-debugging-port=9001flag, it does not matter if I setDeveloper Toolscheckbox to ON or OFF - I still can’t accesslocalhost:9001
- Add a new setting called
Remote Debugging PortorDeveloper Tools Portin theRendering Enginetab. By default it can be set to 9000 but we should be able to change it to any other port (just like how we can change the MySQL port).