Development/JavaScript

javascript - 크롬에서 동적으로 로드된 js 파일 디버깅 방법

linuxism 2013. 7. 28. 13:56


Breakpoints in Dynamic JavaScript

Note: Notice the "//@ sourceURL=dynamicScript.js" line at the end of dynamicScript.js file. This technique gives a name to a script created with eval, and will be discussed in more detail in the Source Maps section. Breakpoints can be set in dynamic JavaScript only if it has a user supplied name.



출처 - https://developers.google.com/chrome-developer-tools/docs/javascript-debugging#breakpoints-dynamic-javascript