Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
JeromeBriot
583 Views, 10 Replies

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

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.

 

 

 

10 REPLIES 10
Message 2 of 11
JeromeBriot
in reply to: JeromeBriot

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.

Message 3 of 11
saketsatta
in reply to: JeromeBriot

Hi Jerome,

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

Thanks,

Saket Satta

Fusion 360 Development

Message 4 of 11
saketsatta
in reply to: saketsatta

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
in reply to: saketsatta

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

 

Message 6 of 11
saketsatta
in reply to: JeromeBriot

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
in reply to: JeromeBriot

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

 

Message 8 of 11
JeromeBriot
in reply to: saketsatta


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

 

 

Message 9 of 11
saketsatta
in reply to: JeromeBriot

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

Message 10 of 11
JeromeBriot
in reply to: saketsatta


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

Message 11 of 11
saketsatta
in reply to: JeromeBriot

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report