JS Debugger window opens "behind" tool menus

JS Debugger window opens "behind" tool menus

soswow
Advocate Advocate
1,176 Views
6 Replies
Message 1 of 7

JS Debugger window opens "behind" tool menus

soswow
Advocate
Advocate

Hello,

Opened sample JS script in "debug" mode and got this:

Screenshot 2015-06-07 23.45.34.png

 

As you can see this window is "inside" Fusion workspace and under all the stuff.

1) Is this normal/known?

2) Is there a way to open this html file in outside browser of my chose (like chrome)

 

0 Likes
Accepted solutions (1)
1,177 Views
6 Replies
Replies (6)
Message 2 of 7

soswow
Advocate
Advocate

Next frustration point is that I updated my script, but when I run "debug" it opens old code. Restart of the whole Fusion helped.

 

Next quick problem: is that normal, I can't initialize new variables in debugger console?

Screenshot 2015-06-08 00.09.21.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

What is the current way of submitting a bug report/issue?

I see this, so looks like there is no open bug tracker yet.

0 Likes
Message 3 of 7

frankzhang
Alumni
Alumni
Accepted solution

Hello, thanks for reporting the issues.

 

  1. The debugger window opens "behind" the tool menu is not expected behavior, they should not overlap. I assume you are suffering this issue in your Mac machine, the debug command launchs the Safari web inspector, Safari is a webkit based web browser which is supported by Fusion debug command, but somehow, the display looks bad, we apologize for that and will be looking into it.

    Regarding the JS debugging in Fusion, here is a topic talking about it.
    http://forums.autodesk.com/t5/api-and-scripts/fusion-360-javascript-debugging/td-p/5390457

  2. By default, the debug command will launch chrome devtools, If Google Chrome is already installed in your machine, but the devTools cannot be launched by the debug command, set below environment variable to see if it helps or not.

    NEUTRON_CHROME_DEVTOOLS = True

  3. "Loading old code issue", this is a bug of Apple, we have contacted Apple about this issue, but no good solution yet.

  4. "can't initialize new variables in debugger console?", I see the same behavior in Safari Web inspector (without Fusion involved) when the debugger is running.

 

Regarding the way of submitting a bug report/issue, I would recommend the ideaStation, using the post in this forum is also a good way. I understand a dedicated bug tracking system like JIRA or bugzilla would be a better choice, but as far as I know, there is no such a tool for users for now.

0 Likes
Message 4 of 7

soswow
Advocate
Advocate

Thank you

 

Yes, I've seen this another topic. It was mainly about windows.

 

I've ran Fusion like this:

 

NEUTRON_CHROME_DEVTOOLS=true open /Users/myusername/Library/Application\ Support/Autodesk/webdeploy/production/<some hash here>/Autodesk\ Fusion\ 360.app

And it still opens debugger in old way. I have Chrome installed. I have couple of them actually )

 

Is there a way to log what Fusion is doing when trying to open debugger (like if it actually notices my NEUTRON_CHROME_DEVTOOLS value?

 

I was hoping to get a way to more interactively (in command line fassion) to run api function. To test it out, play around itc. Is there a way to setup everything so I can just open this html in a standard browser by novigating somewhere.

Or maybe I can start python console and import something and be able to  use API against currently running instance?

0 Likes
Message 5 of 7

soswow
Advocate
Advocate

Ok. I've tryed to play with Python and realized that I can do all I mentioned above there.

0 Likes
Message 6 of 7

soswow
Advocate
Advocate

Hey, @frankzhang is there any update on any of those problems? Those things are still an issue. I tried to use Python and experience even worse, so I am hoping to do JS anyway.

0 Likes
Message 7 of 7

frankzhang
Alumni
Alumni
Hi, we don't have a good solution for the control overlap issue, but we are actively working on a workaround, hopefully it could be delivered soon.

For other JS debugging issues, Kris replied in the thread below, hope that helps.
http://forums.autodesk.com/t5/api-and-scripts/fusion-360-javascript-debugging/td-p/5390457

For python, i see a new thread created, we can discuss there.
http://forums.autodesk.com/t5/api-and-scripts/confused-on-how-to-properly-debug-with-python/m-p/5868...
0 Likes