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.

Implement a debug mode to simplify quick bug analysis

See original GitHub issue

Overview

We need a debug mode available because errors are caught in a few places in the framework. For example, the CLI catches all the errors or Report.from_validate.

We might use an env var or a flag

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
fjuniorrcommented, Sep 10, 2021

@roll just to add additional motivation for this I’ve had a hard time tracking down a wrong delimiter (,) specified in the csv dialect of a resource when the actual csv file was using ;.

Here is an example of the message:

from frictionless import Package, validate_resource
from pprint import pprint

dp = Package('https://raw.githubusercontent.com/dados-mg/datapackage-reprex/bad-dialect-delimiter/datapackage.json')

report = validate_resource(dp.get_resource('pib-per-capita'))

pprint(report)
{'errors': [{'code': 'task-error',
             'description': 'General task-level error.',
             'message': "The task has an error: 'fieldPosition'",
             'name': 'Task Error',
             'note': "'fieldPosition'",
             'tags': []}],
 'stats': {'errors': 1, 'tasks': 0},
 'tasks': [],
 'time': 2.439,
 'valid': False,
 'version': '4.16.6'}

I think that this more obscure message has something to do with the fact that the resource pib-per-capita has a foreignKeys constraint, because the error in the other resource (ie. validate_resource(dp.get_resource('estados'))) is more clear.

Ps. I’ve found https://github.com/frictionlessdata/frictionless-py/issues/903 in the process of investigating this problem and initially though they could be related. 😅

0reactions
rollcommented, Jul 9, 2022

DONE in #1119

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is Debugging? How to Debug Your Code for Beginners
In this article we'll talk about what debugging is, how to debug your code, and how you can get better at it.
Read more >
How to debug for absolute beginners - Visual Studio
In Visual Studio, you enter debugging mode by using F5 (or the Debug > Start ... Next, we'll create an application that has...
Read more >
7 Debugging Techniques to Speed Up Troubleshooting | Toptal
In this article, Toptal Freelance Java Developer Flavio Pezzini shows us techniques that can prevent bugs and make finding issues in production much...
Read more >
How to Debug Your Code - Codecademy
Another method of debugging your code is using error handling. Code that does not use error handling will often crash when it encounters...
Read more >
11 Best Production Debugging Tips To Speed Up Bug Fixes
11 Tips for Debugging in Production · 1. Stop Using Various Latest Technologies · 2. Have Precise Logging Details · 3. Have a...
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