How to implement `au run --watch` task + debugging

坚强是说给别人听的谎言 提交于 2019-12-04 08:30:19

We are aware of this and the two corresponding GitHub issues are:

We plan to improve this in two ways:

  • debugging will ask after a timeout if you want to start debugging even if the prelaunch task has not finished
  • the task framework will allow to specify the watching attribute on a task itself without the need of a problem matcher.

The issue 6209 contains steps how to workaround this problem today and you are on the right path :-). Things that should be different:

Since you don't want to match any problem use a regexp that doesn't match anything. Something like:

"pattern": {
    "regexp": "__________"
}

The bigger problem is that on first run the end of the activity is signaled differently then when reacting to a file change. So the endsPattern must match both BrowserSync Available At: http://localhost:3001 and Finished 'reload'. So a regexp something like/(?:BrowserSync Available At:)|(?:Finished 'reload')/ The beginsPattern and "activeOnStart": true is correct.

If you still don't get it to work please ping me in #6209.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!