debug doesn't work in OneDrive
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.
Would the source file in question happen to have a total path length that is greater than 250 characters?
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: @.***>
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.
@ElectroLund , have you considered using vscode-autohotkey-debug? It's a more advanced and well-maintained debugger
Indeed, good suggestion. That debugger has two immediate advantages:'
- debugs just fine on AHK files inside of OneDrive paths.
- 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: @.***>