我'm trying to attach to an instance of chrome running a react page, using node as a server. I want to attach to the chrome process to debug the front end. I'已尝试按照ms docs中的说明使用win run chrome.exe --remote-debugging-port=9222 打开chrome . 然后我在没有调试的情况下使用ctrl F5启动运行应用程序并选择Debug-> attach to the process . 首先我得到了错误

无法附加到流程 . 在当前状态下,操作不合法

现在我明白了

无法附加到流程 . 该操作被取消 .

要么

无法附加到流程 . 操作超时 .

这不是一个ASP页面,我发现的所有类似错误都与asp有关 . 关闭chrome,并禁用javascript不起作用 . 作为本机代码附加允许我附加但我无法点击断点 .