Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Debugging with module itk fails #414

Closed
DonJayamanne opened this issue May 8, 2018 · 4 comments
Closed

Debugging with module itk fails #414

DonJayamanne opened this issue May 8, 2018 · 4 comments
Assignees
Milestone

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented May 8, 2018

  • OS = Mac
  • Create a python file with the following code:
import itk
print("Hello")
itk_vector = itk.vector[itk.SpatialObjectPoint[2]]()
print("Goodbye")
  • Pip install pip install itk==4.12.0.post1
  • Add a breakpoint to the first print statement
  • Debug in VS Code
  • Debugger hits the print statement
  • Hit step to next statement, it will stop at line withitk_vector
  • Hit step to next statement, and it hangs.

Following error is printed out in the terminal:

Hello
libc++abi.dylib: terminating with uncaught exception of type swig::stop_iteration
Abort trap: 6

I believe the problem lies when retrieving a list of the variables.
For instance if you stop at the first print statement and then hit continue, then the program runs to completion. I.e. stopping at the second print statement is what causes the issue.

@karthiknadig
Copy link
Member

FYI, Does not occur on window:
image

@DonJayamanne
Copy link
Contributor Author

Hmm, please updated to indicate the fact that this was reproduced on a mac.

@karthiknadig
Copy link
Member

@DonJayamanne Can you test this with PR #443 ? and see if this fixes the issue?

@DonJayamanne
Copy link
Contributor Author

Confirmed, is has been fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants