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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Custom widget debug not working

amejia1
12-Amethyst

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.

ACCEPTED SOLUTION

Accepted Solutions
drichter
15-Moonstone
(To:amejia1)

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

View solution in original post

6 REPLIES 6
drichter
15-Moonstone
(To:amejia1)

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

amejia1
12-Amethyst
(To:drichter)

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.

drichter
15-Moonstone
(To:amejia1)

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

amejia1
12-Amethyst
(To:drichter)

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.

rk-31
7-Bedrock
(To:amejia1)

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

And check console tab in developer tools.

Thanks

amejia1
12-Amethyst
(To:rk-31)

Hello,

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

Announcements


Top Tags