Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图从我的代码中知道是否在调试环境中运行。我可以查看节点命令行参数 ( process.execArgv) 并查找--debugor --debug-brk,但我希望有一种更聪明的方法可以找到它。
process.execArgv
--debug
--debug-brk
有任何想法吗?