Skip to main content
12-Amethyst
December 13, 2017
Solved

Custom widget debug not working

  • December 13, 2017
  • 6 replies
  • 5252 views

Hello,

I try to debug my custom widget with the lines like this:

TW.log.warn('Test....');

but this aren't displayed anywhere (navigateur console or thingworx log mashup). Someone knows what's going on?

Version TW used : 7.4

Thanks.

Best answer by drichter

Have you try TW.log.debug instead TW.log.warn?

6 replies

1-Visitor
December 21, 2017

Do you try this logging stuff in your *.ide.js or in *.runtime.js?

I can only see logs for *.runtime.js. Add your widget to an mashup, view this mashup and click on "Show/Hide Log".

amejia112-AmethystAuthor
12-Amethyst
December 21, 2017

Hello David,

Do you try this logging stuff in your *.ide.js or in *.runtime.js?

In the .runtime.js

I can only see logs for *.runtime.js. Add your widget to an mashup, view this mashup and click on "Show/Hide Log".

I did do that but nothing is displayed.

drichter1-VisitorAnswer
1-Visitor
December 21, 2017

Have you try TW.log.debug instead TW.log.warn?

1-Visitor
December 21, 2017

You can also try debugging with console.log('text'); in runtime.js file.

And check console tab in developer tools.

Thanks

amejia112-AmethystAuthor
12-Amethyst
December 22, 2017

Hello,

console.log('text') doesn't work.