cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom widget debug not working

SOLVED
Highlighted
Regular Member

Custom widget debug not working

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.

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Custom widget debug not working

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

View solution in original post

6 REPLIES 6
Highlighted

Re: Custom widget debug not working

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".

Highlighted

Re: Custom widget debug not working

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.

Highlighted

Re: Custom widget debug not working

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

View solution in original post

Highlighted

Re: Custom widget debug not working

Hello David,

Using TW.log.debug is OK when i click on "Show/Hide Log", however i can't see the log using the console tab in developer tools. For now it's fine for me.

Thanks.

Highlighted

Re: Custom widget debug not working

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

And check console tab in developer tools.

Thanks

Highlighted

Re: Custom widget debug not working

Hello,

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

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!