question

Allister Wilson avatar image
0 Likes"
Allister Wilson asked Ben Wilson answered

Webkit debug console

Can you access the webkit console from within FlexSim?

I'm talking about things like JS' console.log(), errors, etc.

Testing in a browser becomes a bit tricky once you get into dynamically building DOM from FlexSim-originating data, and downright impossible when writing logic involving 2-way communication between JS and FlexSim. I'm guessing there must be a better way.

FlexSim 17.1.2
debuggingwebkitconsole
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

@phil.bobo,

I received the following from Alex:

There are a bunch of Web Inspector UI files that are generated and assembled to one folder when building WebKit. If you put the contents of that directory into a Flexsim subdirectory somewhere, it can be opened by right clicking and inspecting an element like you would in a browser. I don’t remember all the details, but I think a directory called WebKit.resources might need to be involved.

Are you able to parse this and guess what is to be done to get the inspector tools into FlexSim?

0 Likes 0 ·
Allister Wilson avatar image Allister Wilson Ben Wilson ♦♦ commented ·

@Ben Wilson

Did you manage to find any details on this?

0 Likes 0 ·
Ben Wilson avatar image
2 Likes"
Ben Wilson answered

It is worth noting that since version 21.0.0 (released Dec 2020), FlexSim's internal web renderer was upgraded from Webkit to Chromium Embedded Framework. The browser dev tools are included with Chromium, accessible by right-clicking any html widget and choosing "inspect":

2022-05-23-09-04-02-flexsim-2022-update-1.png


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image
0 Likes"
Ben Wilson answered

@Allister Wilson, Sorry, no. I contacted the original developer, Alex, who integrated Webkit into FlexSim, and received the response above. Alex actually moved on from FlexSim and now works on Webkit full time.

One of the dev team will need to take it from here, and as I understand they are all busy with final 17.2 polishing, which should have final release the week following the FlexSimposium.

Hopefully some time will be dedicated to Webkit in August, but I shouldn't promise someone else' time. The best thing would be at the FlexSimposium to corner one of the devs and see what they think.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.