TclProDebug icon indicating copy to clipboard operation
TclProDebug copied to clipboard

Problem in "return" wrapper

Open budden opened this issue 1 year ago • 0 comments

Extended form of return seem to be wrapped incorrectly (actually wrapped code just fails to execute). In the DbgNub_Return, there is a erroneous line https://github.com/flightaware/TclProDebug/blob/master/lib/tcldebugger/nub.tcl#L2025

array set optArray $args

after

    if {[llength $args] % 2} {
        array set optArray [lrange $args 0 end-1]
    } else { array set optArray $args }

Sorry, I'm reluctant to make PR, because I'm Russian and github requires me to enable 2FA just now. After enabling 2FA, I expect that my account is banned by my phone number region. So I don't expect github will be available for me after just a few days.

I made a fork in a Russian git hosting, but I can't give you a hyperlink due to spam protection, and I'll push it to my fork. Please try to find my e-mail in my github repos and mail me.

budden avatar Nov 07 '24 10:11 budden