Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7541749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:58:30+00:00 2026-05-30T07:58:30+00:00

complete Python noob here (and rusty in C). I am using a Mac with

  • 0

complete Python noob here (and rusty in C).

I am using a Mac with Lion OS. Trying to use NFCpy, which uses USBpy, which uses libUSB. libUSB is crashing due to a null pointer but I have no idea how to debug that since there are so many parts involved.

Right now I am using xcode to view the code highlighted but I run everything from bash. I can switch to Windows or Linux if this is going to be somehow easier with a different environment.

Any suggestions on how to debug this would be much appreciated 😉

PS: It would be just fine if I could see the prints I put in C in the bash where I run the Python script

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:58:32+00:00Added an answer on May 30, 2026 at 7:58 am

    You should see your printf() you put in C in your terminal, something is already wrong here. Are you sure that you’re using the latest compiled library? To be sure, instead of print, you can use use assert(0) (you need to include assert.h).

    Anyway, you can debug your software using gdb:

    gdb --args python yourfile.py
    
    # type "run" to start the program
    # if you put assert() in your code, gdb will stop at the assert, or you can put 
    # manual breakpoint by using "b filename:lineno" before "run"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

complete noob to Haskell here with probably an even noobier question. I'm trying to
Complete noob here wanting to learn Python. I installed Python, then Eclipse, then PyDev.
Right I am a complete beginner here, trying to work through various python tutorials
I like using pythoncomplete#Complete for Vim omnicompletion , but it doesn't work for Python
I was trying to solve Project Euler problem 10 using python, but my program
I'm doing a Python project in which I'd like to use the Viterbi Algorithm.
I'm trying to use svnmerge.py to merge some files. Under the hood it uses
I'm a complete Python and Django noob so any help is appreciated. This is
I'm trying to print the complete contents of two 1001x1 arrays, but Python only
I'm a complete Python noob. How can I remove two characters from the beginning

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.