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 8269755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:20:00+00:00 2026-06-08T06:20:00+00:00

How can I drop into pdb inside a funcargs function? And how can I

  • 0

How can I drop into pdb inside a funcargs function? And how can I see output from print statements in funcargs functions?


My original question included the following, but it turns out I was simply instrumenting the wrong funcarg. Sigh.

I tried:

print "hi from inside funcargs"

invoking with and without -s.

I tried:

import pytest
pytest.set_trace()

And:

import pdb
pdb.set_trace()

And:

raise "hi from inside funcargs"

None produced any output or caused a test failure.

  • 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-06-08T06:20:01+00:00Added an answer on June 8, 2026 at 6:20 am

    To debug a funcarg:

    def pytest_funcarg__myfuncarg(request):
        import pytest
        pytest.set_trace()
        ...
    
    def test_function(myfuncarg):
        ...
    

    Then:

    python -m pytest test_function.py
    

    As Ronny answered, to see output from a funcarg, pytest -s works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to drop into a read-eval-print loop from inside PHP code
How can you drop a numeric collection from MongoDB? PRIMARY> db.123456789011.remove({}); Tue Mar 20
Can I drag&drop a folder from my home folder that has many subdirs and
I need to design an interface, where user can drag drop elements into page
I was reading somewhere that with MEF I can simply drop a dll into
i need to drag from grlRicProd to drop into grlInsOrd grlIRicProd: ..... id: 'grlRicProd',
I want to make a few boxes that I can drag and drop into
Can I use Jquery to implement a drag drop file into web page (like
i can drop a draggable element into a sortable list. $( .selector ).draggable({ connectToSortable:
Just reading in a C++ book that you can literally drop assembler into C++

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.