F360 debugging doesn't work with latest VSC python version

F360 debugging doesn't work with latest VSC python version

pludikar
Collaborator Collaborator
2,816 Views
26 Replies
Message 1 of 27

F360 debugging doesn't work with latest VSC python version

pludikar
Collaborator
Collaborator

Just so everyone knows - F360 debugging doesn't work with the last VSC python update (2020.10.332292344).  You need to revert back to v2020.9.114305 for F360 to open up VSC and for debugging to work again.

 

Peter

I'm not an expert, but I know enough to be very, very dangerous.

Life long R&D Engineer (retired after 30+ years in Military Communications, Aerospace Robotics and Transport Automation).
0 Likes
Accepted solutions (1)
2,817 Views
26 Replies
Replies (26)
Message 21 of 27

MichaelT_123
Advisor
Advisor

Hi Mr BradBylls,

 

Look at some messages from F360 update process. They might contain some clue ...????

Remove file C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\GraphicsCardInfo.xml
File C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\session.dat can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
Remove file C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\InUseByCollaboratorCache.xml
Remove file C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\MRU.xml
Remove file C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\SavedNotifications.json
File C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\OfflineCache.xml can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
File C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\_analytic-counters.json can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
File C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\NsCloudBrowserCache.dat can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
File C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\flags.json can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
File C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\UnknownUser can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\#######\logs can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
Remove folder C:\Users\#######\AppData\Local\Autodesk\Neutron Platform\Filelock
Remove folder C:\Users\#######\AppData\Local\Autodesk\Neutron Platform\#######
Remove file C:\Users\#######\AppData\Local\Autodesk\Neutron Platform\OfflineCache.xml
Remove file C:\Users\#######\AppData\Local\Autodesk\Web Services\Event.xml
Remove file C:\Users\#######\AppData\Local\Autodesk\Web Services\EventTrigger.tmp
File C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\CEROption.xml can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\#######\CEROption.xml can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\#######\JSLoadedScriptsinfo can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\#######\PythonAutorunModuleinfo can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\Fusion360_<build-number>_addins_to_load.xml can't be cleaned with property isValid:True isFile:True CleanFlag:ForceAll
Remove folder C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\Fabrication
File C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\CPP can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\Python can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\version.txt can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
Remove folder C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\Options
Remove folder C:\Users\#######\AppData\Roaming\Autodesk\Autodesk Fusion 360\#######\Options
File C:\Users\#######\AppData\Local\Autodesk\Production can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Local\Autodesk\Web Services can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Local\Autodesk\Autodesk Fusion 360\AcCore can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Local\Autodesk\Fusion Documentation\AcCore can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
Remove folder C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache\2.0.14567\Visited Links because of [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache\\2.0.14567\\Visited Links'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache\2.0.14567 because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache\\2.0.14567'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache'
Remove folder C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache\2.0.14567\Visited Links because of [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache\\2.0.14567\\Visited Links'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache\2.0.14567 because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache\\2.0.14567'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache'
Remove folder C:\Users\#######\Autodesk\BrowserCache
Remove folder C:\WINDOWS\Autodesk\BrowserCache
Remove folder C:\Users\#######\AppData\Local\Temp\Autodesk
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache\2.0.14567\Visited Links because of [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache\\2.0.14567\\Visited Links'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache\2.0.14567 because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache\\2.0.14567'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk'
Remove folder C:\Users\#######\AppData\Local\Temp\Autodesk
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache\2.0.14567\Visited Links because of [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache\\2.0.14567\\Visited Links'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache\2.0.14567 because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache\\2.0.14567'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk\BrowserCache because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk\\BrowserCache'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Autodesk because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Autodesk'
Remove folder C:\Users\#######\AppData\Local\Temp\Proteinrun
Remove folder C:\Users\#######\AppData\Local\Temp\Proteinrun
Remove folder C:\Users\#######\AppData\Local\Temp\ProtoLabs
Remove folder C:\Users\#######\AppData\Local\Temp\ProtoLabs
Remove folder C:\Users\#######\AppData\Local\Temp\Neutron
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu\icons\spinner\normal\0x0-normal.png because of [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu\\icons\\spinner\\normal\\0x0-normal.png'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu\icons\spinner\normal because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu\\icons\\spinner\\normal'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu\icons\spinner because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu\\icons\\spinner'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu\icons because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu\\icons'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1 because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron'
Remove folder C:\Users\#######\AppData\Local\Temp\Neutron
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu\icons\spinner\normal\0x0-normal.png because of [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu\\icons\\spinner\\normal\\0x0-normal.png'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu\icons\spinner\normal because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu\\icons\\spinner\\normal'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu\icons\spinner because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu\\icons\\spinner'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu\icons because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu\\icons'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources\ActionMenu because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources\\ActionMenu'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base\Resources because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base\\Resources'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI\Base because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI\\Base'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron\UI because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron\\UI'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1\Neutron because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1\\Neutron'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated\Version1 because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated\\Version1'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron\Generated because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron\\Generated'
Failed to remove file C:\Users\#######\AppData\Local\Temp\Neutron because of error [WinError 145] The directory is not empty: 'C:\\Users\\#######\\AppData\\Local\\Temp\\Neutron'
Remove folder C:\Users\#######\AppData\Local\Temp\FusionStreamer
Remove folder C:\Users\#######\AppData\Local\Temp\FusionStreamer
File C:\Users\#######\AppData\Roaming\Autodesk\MC3 can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Neutron Platform can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\NINVFUS can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Synergy can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll
File C:\Users\#######\AppData\Roaming\Autodesk\Neutron can't be cleaned with property isValid:True isFile:False CleanFlag:ForceAll

Regards

MichaelT

 

MichaelT
0 Likes
Message 22 of 27

brad.bylls
Collaborator
Collaborator

I deleted the ms.python.python files and then I try to debug a script.

It opens VSC and then this.

bradbylls_0-1666969550491.png

And no debugging happens.

Brad Bylls
0 Likes
Message 23 of 27

pludikar
Collaborator
Collaborator

@rushikesh.kadam

 

Hi @MichaelT_123 

I just want to check that you got these error messages from your own computer?  I saw exactly the same log messages (appears to be 100% identical) when I updated my F360 to the latest version.  I reported the problem to AD (via insider problem reporting), but it wasn't given any attention, I suspect because F360 still works, and not enough people have reported the issue!

 

I strongly suspect that there's a cache file that isn't being deleted, and it's probably associated with one of the files listed in the error log - there are just too many to go through one by one.

 

Peter

I'm not an expert, but I know enough to be very, very dangerous.

Life long R&D Engineer (retired after 30+ years in Military Communications, Aerospace Robotics and Transport Automation).
0 Likes
Message 24 of 27

brad.bylls
Collaborator
Collaborator

@MichaelT_123 where do you find these messages?

 

Brad

Brad Bylls
0 Likes
Message 25 of 27

pludikar
Collaborator
Collaborator

Hi @brad.bylls 

 

Unfortunately they don't make it obvious.  In my case I just happened to have VSC open when I initiated an upgrade - and, I got a slew of log messages on the VSC terminal.  I had the presence of mind to copy and paste the logs to notepad.  If I hadn't seen the messages I don't think I would had ever known that there was an issue.  There wasn't a failure message or any other indication to show that something didn't go right.

 

I suspect that these messages indicate that some files are not actually upgraded, and so it's possible that there's a mix of supporting file versions (which can't be good).  I can't seem to get AD to react- they're not interested unless there's a throng of voices or something has obviously failed.

 

Peter      

I'm not an expert, but I know enough to be very, very dangerous.

Life long R&D Engineer (retired after 30+ years in Military Communications, Aerospace Robotics and Transport Automation).
0 Likes
Message 26 of 27

MichaelT_123
Advisor
Advisor

Hi Mr BradBylls, Pludicar,

 

As I understand, VSCode conducts debugging process using JavaScript node.js, which takes configuration params launch.jsonThe detailed semantics are available on VSCode web pages.

Regarding your problem, pay attention to the debug port configuration. Do you have some network ports blocking software, firewalls, software utilizing standard VSCode debug port for a different purposes, malicious viruses, specific network hardware,... etc.?

Where I got the messages from?  Well, I have brought them from .... debug panel of VSCode itself, although I think they could be found in the local log files also.

 

Regards

MichaelT

MichaelT
0 Likes
Message 27 of 27

brad.bylls
Collaborator
Collaborator

@MichaelT_123 @JeromeBriot @pludikar 

 

I don't understand all that port stuff.

What I did find find, is if I start a debug in F360 which then opens VSC and nothing happens, I click F5 (which starts debugging) and then it will debug as usual.

 

Brad

Brad Bylls
0 Likes