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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:01:15+00:00 2026-05-28T18:01:15+00:00

I am currently using NetBeans IDE with Jython 2.5.1 When debugging my project step

  • 0

I am currently using NetBeans IDE with Jython 2.5.1

When debugging my project step by step, as soon as an iteration over a generator is encountered, the debugger goes straight to the end of the code. The output works ok, but it is impossible to do step by step debugging once the first generator is met.

Is this a standard behavior for Python debugging in all Python IDE?
Is it not possible to debug the code “yield after yield” the same way we can debug VBA for each element of a “for” loop (sorry for the mention of VBA :)?

Thanks.

EDIT

Without the generator

Code:

def example(n):
i = 1
while i <= n:
    yield i
    i += 1

print "hello"

print "goodbye"

Output:

hello
goodbye

Debugging:

[LOG]PythonDebugger : overall Starting
[LOG]PythonDebugger.taskStarted : I am Starting a new Debugging Session ...
[LOG]This window is an interactive debugging context aware Python Shell 
[LOG]where you can enter python console commands while debugging 

(...)

>>>[stdout:]hello
>>>[stdout:]goodbye
Debug session normal end

With the Generator

Code:

def example(n):
    i = 1
    while i <= n:
        yield i
        i += 1

print "hello"

for n in example(3):
    print n

print "goodbye"

Output:

hello
1
2
3
goodbye

Debugging:

[LOG]PythonDebugger : overall Starting
[LOG]PythonDebugger.taskStarted : I am Starting a new Debugging Session ...
[LOG]This window is an interactive debugging context aware Python Shell 
[LOG]where you can enter python console commands while debugging 

(...)

>>>[stdout:]hello
>>>None['GeneratorExit
deamon ended
']

Debug session normal end
  • 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-28T18:01:17+00:00Added an answer on May 28, 2026 at 6:01 pm

    I just tested eclipse and it will do debugging with pydev installed.

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

Sidebar

Related Questions

I'm using the Netbeans IDE, and I'm currently using a GlassFish server. What I
We are currently considering using Netbeans to develop a Jython application and I am
I'm currently using NetBeans IDE, so I want to host a WebService and consume
I am currently using a PHP 5 along with Netbeans IDE to create a
I am currently using netbeans 6.7 to develop some j2me apps for a phone.
Currently I am using Netbeans to develop applications in Swing, but Netbeans is very
I am currently building a small visual designer using the Netbeans Platform. All my
I'm currently using VS2005 Profesional and .NET 2.0, and since our project is rather
I'm looking for a fast IDE for Linux that has Find&Replace. I'm currently using
I'm using NetBeans IDE 6.9 (Build 201006101454), and wrote this simple Java class (that

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.