Debugging problem

Debugging problem

brad.bylls
Collaborator Collaborator
1,558 Views
5 Replies
Message 1 of 6

Debugging problem

brad.bylls
Collaborator
Collaborator

When I go to debug my script, I get this error message:

Could not load source '<string>': Unable to retrieve source for <string>.

But it doesn't tell me what the error is or what line of code, nothing.

How can I find out what the error is?

Brad Bylls
0 Likes
Accepted solutions (2)
1,559 Views
5 Replies
Replies (5)
Message 2 of 6

prainsberry
Autodesk
Autodesk
Accepted solution

Can you share any more details?  Steps you took?  Can you share the script?



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 3 of 6

brad.bylls
Collaborator
Collaborator

I think I figured it out.

Seems to be a syntax error.

If I change the "python.linting.pylintEnabled": to true

Errors show up in the debug console.

The only problem with that it seems, everytime I start Fusion it goes back to false, even after saving the setting.json file.

Brad Bylls
0 Likes
Message 5 of 6

brad.bylls
Collaborator
Collaborator
kandennti ,

That did not do anything to help.

Brad
Brad Bylls
0 Likes
Message 6 of 6

CADacombs
Enthusiast
Enthusiast
Accepted solution

This message appears when stepping through the end of a script.
For example, using 
http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-ecd3b76b-19f7-4efa-8a02-087c16da246f

1. Place a breakpoint on the line

circle3 = circles.addByCenterRadius(circle2.centerSketchPoint, 4)

2. Start Debugging

3. Step Over

A tab named <string> appears in VS Code with contents:

Could not load source '<string>': Unable to retrieve source for <string>.

0 Likes