question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add print breakpoint

See original GitHub issue

Feature 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:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
CaerusKarucommented, Dec 18, 2018

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 (ie matchMedia.addListener('print') or whatever the correct syntax is

Problem 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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >
Breakpoints for Print - CSSence.com
A media query test page for web browsers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found