And here is a slightly more flexible solution: run the application with the command line parameter - remote-debugging-port = XXXX . It is automatically routed using QApplication for the internal components of Blink (or any other QWebEngine), so there is no additional work such as parsing arguments; and it can be changed without restoring the application.
Update: to be honest, I used it only with 5.5 and 5.6, maybe it is not supported in 5.4
source share