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.

Feature: Debugging method to display cart data quickly

See original GitHub issue

Was thinking we can provide CartDisplay to the library, that way people won’t have to build out a whole interface or log everything happening just to see if the lib is working. Similar to how formik has a component just for showing form state

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
andria-devcommented, May 13, 2020

That sounds like a good idea, I think something like debugShoppingCart() would be a good idea:

function debugShoppingCart() {
  const { /* ... */ } = useShoppingCart()
  return (
    /* debug values */
  )
}

And then to use this function it would look like:

<div>
  {debugShoppingCart()}
</div>

We could also make it appear as more of a traditional component like <DebugShoppingCart />, however, this works just as well and I believe indicates more of a debugging nature to the function rather than a normal component.

0reactions
andria-devcommented, Feb 16, 2021

Sure, I’ll get started on that soon. I’ll try to write some tests for the HTML it renders too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sidekick Blog | Debugging an e-commerce app online!
This article shows how to debug Python code in the production environment of a real-world scenario with the help of Sidekick.
Read more >
JavaScript Shopping Cart Tutorial for Beginners - YouTube
In this video we will learn how to utilize JavaScript to add functionality to a shopping cart. We will cover how to check...
Read more >
Save Products to a Cart for Checkout in Android Studio (AS ...
Android's SharedPreferences allows developers to save key value pair data to a phone's internal storage, perfect for saving basic ...
Read more >
Debugging — CS-Cart 4.15.x documentation
You can use the fn_print_r(); function to debug your PHP code. This function displays the information about the variables you specify in it....
Read more >
SRM7 Shopping Cart transfer debugger with Purchase ...
So I created this simple accelerator and plug-n-play IT tool for SRM to be able to debug Shopping Chat follow-on documents determination and ......
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