[bug] Launching Devtools on palette fails if useNewWebBrowser is set to True

[bug] Launching Devtools on palette fails if useNewWebBrowser is set to True

JeromeBriot
Mentor Mentor
1,782 Views
10 Replies
Message 1 of 11

[bug] Launching Devtools on palette fails if useNewWebBrowser is set to True

JeromeBriot
Mentor
Mentor

Hello,

 

I finally found what was going wrong with my add-ins. 😒

See this message: Debug of palettes stopped working

 

Setting useNewWebBrowser to True in palettes.add() makes the Devtools unusable when right click on a palette object.

 

Tested on Windows and macOS.

 

 

 

0 Likes
Accepted solutions (1)
1,783 Views
10 Replies
Replies (10)
Message 2 of 11

JeromeBriot
Mentor
Mentor

I followed the workaround suggested by @saketsatta here, but these lines appear in the command window whenFusion 360 starts:

 

[18656:17168:0410/155939.519:ERROR:tcp_socket_win.cc(341)] bind() returned an error: Une seule utilisation de chaque adresse de socket (protocole/adresse rÚseau/port) est habituellement autorisÚe. (0x2740)
[18656:17168:0410/155939.520:ERROR:devtools_http_handler.cc(220)] Cannot start http server for devtools. Stop devtools.

0 Likes
Message 3 of 11

saketsatta
Autodesk
Autodesk

Hi Jerome,

I will look into it and let you know what I find.

Thanks,

Saket Satta

Fusion 360 Development

0 Likes
Message 4 of 11

saketsatta
Autodesk
Autodesk

Hi Jerome,

 

I was able to reproduce the problem.

The good news is that we have identified a fix for root problem and it should be available early next week with a Fusion update. So you will be able to debug the HTML/JS without the need to launch Fusion from the command line.


Thanks,


Saket Satta

Fusion 360 Development

Message 5 of 11

JeromeBriot
Mentor
Mentor

@saketsatta , I just tested with the latest update of Fusion 360 (2.0.8111) but it didn't work on my computers (Wndows and Mac). 

 

fusion-360-palette-devtools.png

 

Both "Dev Tools" entries open the "Inspectable pages".

"Save page" and "View page source" don't work neither.

 

0 Likes
Message 6 of 11

saketsatta
Autodesk
Autodesk

Hi Jerome,

 

I'm sorry to hear that. Does any of the inspectable pages you see have the page with your html? If you click on that, does it show you the source code? If not, can you please post the images of what you see when you click on both the Dev Tools options?

 

Thanks,

Saket Satta

Message 7 of 11

JeromeBriot
Mentor
Mentor

Here are some message related to DevTools that appeared in the terminal:

 

DevTools listening on ws://127.0.0.1:9766/devtools/browser/18bc6961-54a8-495b-9577-bbd155d18efc

 

 

Remote debugging server started successfully. Try pointing a Chromium-based browser to http://127.0.0.1:9766

 

 

[15100:2372:0414/062955.455:ERROR:devtools_http_handler.cc(412)] GetMimeType doesn't know mime type for: browser/18bc6961-54a8-495b-9577-bbd155d18efc text/plain will be returned
[15100:20728:0414/062955.456:ERROR:devtools_http_handler.cc(412)] GetMimeType doesn't know mime type for: browser/18bc6961-54a8-495b-9577-bbd155d18efc text/plain will be returned
[15100:2372:0414/063008.216:ERROR:devtools_http_handler.cc(412)] GetMimeType doesn't know mime type for: browser/18bc6961-54a8-495b-9577-bbd155d18efc text/plain will be returned
[15100:20728:0414/063008.216:ERROR:devtools_http_handler.cc(412)] GetMimeType doesn't know mime type for: browser/18bc6961-54a8-495b-9577-bbd155d18efc text/plain will be returned

 

0 Likes
Message 8 of 11

JeromeBriot
Mentor
Mentor

@saketsatta wrote:

Does any of the inspectable pages you see have the page with your html? If you click on that, does it show you the source code?


It works if I click on "Dev Tools (In-product / Chromium v69)" and then on the HTML file in the inspectable pages list.

 

The HTML file is also listed when I use "Dev Tools (Punch-out / Chromium LATEST)" but it opens a blank page when I click on it.

 

 

0 Likes
Message 9 of 11

saketsatta
Autodesk
Autodesk
Accepted solution

Hi Jerome,

 

I'm glad to know it works if you use the In-Product version of DevTools!

 

Which version of Chrome do you have currently? If it is v80 then as per this post the punch out version of DevTools will also work if you downgrade to v79: https://stackoverflow.com/questions/60292131/qt-qwebengine-remote-debugging-chrome-developer-tools-n...


Best regards,
Saket Satta

Fusion 360 Development

0 Likes
Message 10 of 11

JeromeBriot
Mentor
Mentor

@saketsatta wrote:

Which version of Chrome do you have currently? If it is v80 then as per this post the punch out version of DevTools will also work if you downgrade to v79:


I have Chrome v81. So I will use the In-Product version of DevTools. It works great on both Windows and macOS.

 

Thank you..

0 Likes
Message 11 of 11

saketsatta
Autodesk
Autodesk

Thank you for confirming this Jerome. I will follow-up on the original thread so everyone is clear about it.

 

Regards,

Saket Satta

Fusion 360 Development

0 Likes