Skip to content
Snippets Groups Projects

Fixed debugging Units

Merged Erik Ahlroth requested to merge eriah592/pycommandcenter:master into master

Removed ensuring there is a target in getTarget(), which solves a crash when debugging in PyCharm. *Previously if an Unit was opened during debugging it would crash if the unit had no target, failing the assertion. *If there is no current target getTarget() will instead return itself (this functionality was already implemented and probably how it handled it before adding this assertion)

*I have done some basic tests and now Unit can be opened BUT in some cases it crashes upon inspecting a target of a unit. However this alteration is still better as it does just SOMETIMES crash instead of ALWAYS

Edited by Erik Ahlroth

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading