albilu / netbeansPython

Netbeans Support for Python
https://plugins.netbeans.apache.org/catalogue/?id=89
GNU General Public License v3.0
38 stars 4 forks source link

debug python input() some error #96

Closed tatwww closed 5 months ago

tatwww commented 6 months ago

HI @albilu

Below is my code, it is a simple printing program, but when I use the debug function, I cannot enter the counter, or maybe I don't understand the function. Can you help me, I use netbeans 19 + python plugin 1.5

` import string

try: inputSize = int(input("Enter size of pattern: ")) except ValueError: print("Size of pattern must be an integer, try again.") quit()

if inputSize < 0: print("Size of pattern can't be less than or equal to 0 , try again") quit()

for currentLayel in range(inputSize):

for inlineElement in range(inputSize):

        # 0-3 loop
        # 3               3            1
    if inlineElement >= inputSize - currentLayel:
        index = currentLayel + inlineElement
        print(string.digits[index % 10], end="")
    else:
        print("*", end="")

print("")

` image

albilu commented 5 months ago

@tatwww the function is working well.Its an issue with the debugger. This is a very lite version of the debugger planned to be replaced later and all features are not supported for now. This could be fixed in a later version