Skip to content

[Q&A] How to develop functionaltiy in MORSE? #801

Open
@dgerod

Description

@dgerod

Hi all,

I have a very basic question :-|

When you are developing some internal parts of MORSE, how you check the behavior in execution? Are you using a debugger or you are writing traces in the code? I have tried to use PyCharm to debug the code but I don't know how to do it.

At this moment for debugging MORSE I add the following lines in a internal file (e.g. sensor):

import pdb
pdb.set_trace()

And I launch my simulation using morse start XXXXXXXX. But this means that I have to debug the code in the terminal. Usefull improvements that enhancement pdb are pdb++ and pudb

In addition, could you explain how you typically develop internal code of MORSE?

Thanks in advance.

Kind regards,
-- Diego

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions