Add print breakpoint
See original GitHub issueFeature Request
What is the desired behavior?
Add a standard breakpoint for the print media query.
What is the use-case or motivation for the desired behavior?
Many apps need to show things only when printing or saving to pdf.
<span fxHide fxShow.print>Printer specific info</span>
<span>Regular content</span>
Is there anything else we should know?
I know you can setup a custom breakpoint for this but I hope it is common enough to be included standard. For business apps people tend to print pages a lot and often need some extra info or some things hidden.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Better print debugging with Xcode breakpoints - Sarunw
Click the Add Action button and select Debugger Command. Put any print command in a debug console in a text field. Make sure...
Read more >Debugging breakpoints as a replacement for prints - SwiftLee
The most simple implementation of debugging breakpoints is by adding a print breakpoint instead of adding a print statement in our code.
Read more >How to print string value from breakpoint action in Xcode 4?
Add a Log function from the drop-down, then add another box and select Debugger Command and enter po f.name .
Read more >print() and breakpoint() - Real Python
In this lesson, you'll learn how to debug in Python using print() and breakpoint() . breakpoint() is an alias that works in Python...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here are the long awaited replies to this issue.
Problem 1: This can be easily solved by adding a matchMedia listener on the
print
event (iematchMedia.addListener('print')
or whatever the correct syntax isProblem 2: As of beta 22 you can now specify priority for breakpoints, meaning you can specify that the print breakpoints always override the defaults.
That being said, as discussed here, we’re going to implement this as a config, where turning on the config adds a print listener, and overrules the media activations during print (ie until print breakpoint deactivation). The config would allow a developer to specify a breakpoint to activate (which could include a custom breakpoint). Without objection, I’m going to fold this into #603 to track the work moving forward.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.