Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate debug code ? #260

Open
fungiboletus opened this issue Nov 14, 2018 · 7 comments
Open

How to generate debug code ? #260

fungiboletus opened this issue Nov 14, 2018 · 7 comments

Comments

@fungiboletus
Copy link
Contributor

It's not documented anywhere but it looks like a few debug annotations exist :

@debug "true"
@debug_fifo "true"
@debug_message_send ".*"
@debug_message_receive ".*"

I did put them in my configuration, but still no debug code is generated. Is there something more to do ?

@brice-morin
Copy link
Collaborator

As for now, I think we can consider debugging broken...

We need to revise the way we do debugging, possibly through a ThingML tool

@fungiboletus
Copy link
Contributor Author

Alright. I patched the JSThingImplCompiler.java : if (debugProfile.isActive() || AnnotatedElementHelper.hasAnnotation(ctx.getCurrentConfiguration(), "debug")) {} Now it generates the code, which is good enough for me so you can take your time thinking about the new debugger.

@brice-morin
Copy link
Collaborator

Note that we now have a tool to instrument ThingML with logs (does not yet work for C, though). I can try do write some documentation about it.

@ffleurey
Copy link
Collaborator

ffleurey commented Apr 5, 2019

Actually, the stuff that fungiboletus is deveopping could be a really good test / showcase for the tool you have made Brice and it runs in the browser.

@brice-morin
Copy link
Collaborator

Cool :-) I'll make a small tutorial, then

@brice-morin
Copy link
Collaborator

OK, this README.MD should get you started.

@brice-morin
Copy link
Collaborator

Note that the readme does not explain how to use the dashboard made by @nicolasferry :-) just to get raw logs out of your Thingml programs

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

No branches or pull requests

3 participants