Debug of palettes stopped working

Debug of palettes stopped working

rolandas_vegis
Advocate Advocate
1,934 Views
12 Replies
Message 1 of 13

Debug of palettes stopped working

rolandas_vegis
Advocate
Advocate

When new palette browser came out, you could debug by right clicking in the palette and opening dev tools. It would open the https://localhost:9766 running this address in chrome used to open the dev tools.

 

Some time ago this stopped working, it says page cannot be reached.

Is there any way to fix it? Or an alternative way to open the dev tools?

0 Likes
1,935 Views
12 Replies
Replies (12)
Message 2 of 13

goyals
Autodesk
Autodesk

I am able to reproduced it. We will get back to you on this. Thanks for posting it.



Shyam Goyal
Sr. Software Dev. Manager
0 Likes
Message 3 of 13

goyals
Autodesk
Autodesk

One probable workaround till we get a proper fix out is setting an environment variable of QTWEBENGINE_REMOTE_DEBUGGING with a value of 9766 then it should work. Thanks.



Shyam Goyal
Sr. Software Dev. Manager
0 Likes
Message 4 of 13

rolandas_vegis
Advocate
Advocate

Unfortunately, the workaround does not seem to work for me.

Tried restarting pc after adding the environment variable, didn't help.untitled.png

0 Likes
Message 5 of 13

saketsatta
Autodesk
Autodesk

Hi Rolandas,

 

We apologize for the problem you are facing. We wanted to let you know that we are working on a fix for the issue. 

 

In the meantime, please try another workaround as below:

1. Start a command line prompt

2. Browser to the location of the Fusion install (where Fusion360.exe exists) eg C:\Users\<username>\AppData\Local\Autodesk\webdeploy\production\128340bb0c272cfb06c5653400939c91abb2a80a

3. Set the environment variable using setx command eg. setx QTWEBENGINE_REMOTE_DEBUGGING 9766

4. Invoke Fusion360.exe

 

After this, the Dev Tools should start working for you. Unfortunately you might need to start Fusion like this every time you want to use Dev Tools until we have a fix available. 

 

Regards,

Saket Satta

Fusion 360 Development

0 Likes
Message 6 of 13

rolandas_vegis
Advocate
Advocate

Indeed this time it works, thanks for providing a temporary solution.

0 Likes
Message 7 of 13

saketsatta
Autodesk
Autodesk

Hi,

 

I am glad the temporary solution worked for you. Thanks for confirming it. 

 

Regards,

Saket Satta

Fusion 360 Development

0 Likes
Message 8 of 13

JeromeBriot
Mentor
Mentor

Hello,

 

@goyals and @saketsatta , I'm facing the same issue today.

 

I tried the workaround but it didn't work. Here is the page I see when I try to use the Dev Tools:

palette-dev-tools-bug.png

It's weird because it was working before.

 

Edit : Windows 10 and Firefox

0 Likes
Message 9 of 13

JeromeBriot
Mentor
Mentor

Actually, it works with some of my add-ins but not with some others. What could be the difference ?

 

0 Likes
Message 11 of 13

goyals
Autodesk
Autodesk

This workaround is suggested only for new browser only if useNewWebBrowser is set to True



Shyam Goyal
Sr. Software Dev. Manager
0 Likes
Message 12 of 13

JeromeBriot
Mentor
Mentor

Yes I know. I tried the workaround by @saketsatta but it didn't solve the issue.

 

Devtools works only if useNewWebBrowser is set to False. Even if Fusion 360 is started from the command line with the environment variable set correctly.

0 Likes
Message 13 of 13

saketsatta
Autodesk
Autodesk

Hi all,

 

This issue is now fixed with the latest version of Fusion that was released yesterday. Please see this thread for some more details: https://forums.autodesk.com/t5/fusion-360-api-and-scripts/bug-launching-devtools-on-palette-fails-if...

 

Thanks,

Saket Satta

Fusion 360 Development

0 Likes