简体   繁体   中英

How to black box all the script files except the file you are debugging?

I am trying to debug a nodejs code in chrome devtool by the node --inspect-brk app.js command.

While debugging the debugger most of the time getting into node's internal core modules . I know this can be avoided by black boxing the script file.

But i want to know is there a way to black box all the script files except the file you are debugging in one go ?

在此处输入图片说明

Chrome blackboxing support regular express for the file name. Simply use the a Negative Lookahead (?!your script) .
eg. ^((?!myscript).)*$ will blackboxing any other script except myscript

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM