Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What does the Pretty Print button do?

button Pretty print
0
10 Posted

What does the Pretty Print button do?

0

This button toggles Pretty Print mode. While in Pretty Print mode, the contents of the Source Code view will contain the decompiled source text for the selected function. This is the same text you would get from the toSource method of the Function prototype. If the source text you are debugging is poorly formatted, Pretty Print can help make it easier to read by inserting line breaks and whitespace in appropriate places. When Pretty Print is enabled you will see a green check mark on the toolbar button, and the menu item will be checked as well. You can set breakpoints and single step through Pretty Printed source just as you can with the original source text. You can save the Pretty Printed source to disk with the Save Source View As… option from either the File menu or the Source View context menu. If Pretty Print is not working for a particular function, the function may have been unloaded by the JavaScript engine, or you may not have the function selected. To select the function,

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.