cannot get current window; are you in background
执行命令:
/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/bin/cli -o /Users/xxxxx/项目路径
输出:
idePortFile: /Users/XXXX/Library/Application Support/微信开发者工具/Default/.ide
IDE server has started, listening on http://127.0.0.1:22496
为什么会报这个问题,微信开发者工具是已打开且登录状态,而且也没有在后台运行。