简体   繁体   中英

How to access and search code in debugger:///VM* files in Google Chrome Devtools

I want to debug scripts which are not loaded via files, meaning they loaded via eval or Native code pushed to the browser from iOS/Android.

when I write in the DevTools console (function() {debugger}()) the browser create fake file like debugger:///VM132 and you can see it in the debugger breakpoint.

I usually has lots of debugger:///VM*** "files" code but I can't access them and can't see the list of debugger:///VM script anywhere in the DevTools. the Sources panel also not showing any of those.

In addition, I use DevTools search CMD+option+F and is not searching inside debugger:///VM files.

How can I find those sources?

I notice the option in DevTools Settings under Sources -> Search in anonymous and content scripts . I get all console scripts, debugger conditional breakpoints, and injected scripts from Native App to JS.

在此处输入图片说明

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