autohotkey-plus icon indicating copy to clipboard operation
autohotkey-plus copied to clipboard

debug doesn't work in OneDrive

Open ElectroLund opened this issue 4 years ago • 5 comments

This is a curious issue. I discovered that breakpoints aren't being obeyed on source files that are added to a OneDrive folder in Explorer. This took a while to discover the culprit!

If I simply drag that file out of the folder and into a non-OneDrive folder... magic. Breakpoints break as they should.

ElectroLund avatar Dec 21 '20 21:12 ElectroLund

Would the source file in question happen to have a total path length that is greater than 250 characters?

biorpg avatar Oct 01 '22 19:10 biorpg

Ahh, good idea. Path length has bitten me before. I just fired a project up from inside my OneDrive path, verified the breakpoint doesn't work, and the path looks like this:

C:\Users\nnn.nnnn\OneDrive - Company Name Here\Documents\AutoHotkey\calendar picker.ahk

This one was only 94 characters.

On Sat, Oct 1, 2022 at 1:33 PM biorpg @.***> wrote:

Would the source file in question happen to have a total path length that is greater than 250 characters?

— Reply to this email directly, view it on GitHub https://github.com/vscode-autohotkey/autohotkey-plus/issues/65#issuecomment-1264460953, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARKZXQRE2N47GJTZU4XHX3WBCG2HANCNFSM4VEYZVIQ . You are receiving this because you authored the thread.Message ID: @.***>

ElectroLund avatar Oct 03 '22 14:10 ElectroLund

Good to know this one is still active. OneDrive in general has been very weird for me with its behind-the-scenes file manipulation, that may be contributing here. We'll keep this one on the backlog, thanks for the repro steps.

mark-wiemer avatar Oct 03 '22 17:10 mark-wiemer

@ElectroLund , have you considered using vscode-autohotkey-debug? It's a more advanced and well-maintained debugger

mark-wiemer avatar Oct 03 '22 21:10 mark-wiemer

Indeed, good suggestion. That debugger has two immediate advantages:'

  1. debugs just fine on AHK files inside of OneDrive paths.
  2. also supports conditional breakpoints

Thanks!

On Mon, Oct 3, 2022 at 3:22 PM Mark Wiemer @.***> wrote:

@ElectroLund https://github.com/ElectroLund , have you considered using vscode-autohotkey-debug https://marketplace.visualstudio.com/items?itemName=zero-plusplus.vscode-autohotkey-debug? It's a more advanced and well-maintained debugger

— Reply to this email directly, view it on GitHub https://github.com/vscode-autohotkey/autohotkey-plus/issues/65#issuecomment-1266068342, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARKZXSJILPDOVQ72ASXQGDWBNFCFANCNFSM4VEYZVIQ . You are receiving this because you were mentioned.Message ID: @.***>

ElectroLund avatar Oct 03 '22 21:10 ElectroLund