5

Chrome (and Canary) used to be able to show javascript source which was embedded in aspx files.

Typically, I would add a debugger; statement, save, and then load my web page in Chrome with the developer tools window open. When Chrome hit the debugger; statement, it would stop and then show the javascript source, so that I could inspect variable or step through code.

A recent change has changed this so that now, when the debugger; statement is executed, Chrome dutifully stops execution but it is unable to show the source.

Does anyone know what has changed; if there are any configuration settings which would re-enable the previous behavior; or how to make this work correctly?

Chrome version: 50.0.2661.102 m (on Windows). I'm also seeing this in version 53.0.2763.0 canary (64-bit)

I suspect this applies to any kind of embedded script, not just aspx.

live-love
  • 48,840
  • 22
  • 240
  • 204
Robert Altman
  • 5,355
  • 5
  • 33
  • 51
  • Chrome for windows is up to version **51.0.2704.84 m**, try updating? – fnostro Jun 09 '16 at 17:23
  • When stuff happens like that to me, it is normally a memory issue and restarting the browser usually clears it up. But if you are seeing it on two different browsers that is strange. – epascarello Jun 09 '16 at 17:36
  • Version 51.0.2704.84 m -- same result. – Robert Altman Jun 09 '16 at 17:37
  • Unlikely a memory issue; I also run Chrome on another computer (Mac) connection across network. While Chrome used to be able to display the source; this time there was no visible source after the break point was hit. It is almost as if Chrome lost the ability to show embedded javascript. – Robert Altman Jun 09 '16 at 17:39

1 Answers1

2

I had the same problem. When I clicked on the aspx page, under the Sources tab, I got a blank page. What worked for me was refreshing the page in Chrome. After that, the aspx code showed up in Developer Tools, and I was able to see , debug and search the code. This seems to be a Chrome bug.

Chrome Developer tool: html script is blank (in source) debugging tutorial

live-love
  • 48,840
  • 22
  • 240
  • 204
  • I tried the same in chrome but did not work. But the same solution worked for me in Microsoft Edge browser. – RahulGo8u May 04 '23 at 08:07