You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stopOnEntry does not work when 'program' is omitted #201
This is adapted from a ts-node launch json where I have an additional "runtimeArgs": ["-r", "ts-node/register"],. Of course does this not run, but it's the next step.
So it seems like passing the file in as an argument rather than program is not working? But the same command does work on the CLI, e.g. /Users/bencreasy/.local/nodenv/shims/node /Users/bencreasy/code/stock-analysis/backend/src/db/migrations/migrate-csv-all-trading.js
Works in CLI:
I was originally motivated to try this due to "Step Over" in the current debugger continuously stepping in.
I haven't figured out the issue yet - eventually the call stack is empty but it's still running.
In another round, this breakpoint hit in a confusing manner where it appears as if it's stopped on the error but the variables doesn't seem to support that.
Also noticing it breaking at some sort of invisible breakpoint. The below is a stop from a Continue and the Call Stack says "Paused on breakpoint", but there's no breakpoint nearby. Particularly annoying since it's stopping on a timeout and if I don't click fast enough, it rejects the promise.
Activity
jcrben commentedon Jan 2, 2020
I ended up pulling this down and running it with the Extension Development Host. I set a breakpoint at
vscode-js-debug/src/ui/sessionManager.ts
Line 126 in 842b32f
I haven't figured out the issue yet - eventually the call stack is empty but it's still running.

In another round, this breakpoint hit in a confusing manner where it appears as if it's stopped on the error but the variables doesn't seem to support that.
Also noticing it breaking at some sort of invisible breakpoint. The below is a stop from a Continue and the Call Stack says "Paused on breakpoint", but there's no breakpoint nearby. Particularly annoying since it's stopping on a timeout and if I don't click fast enough, it rejects the promise.

jcrben commentedon Jan 3, 2020
This https://github.com/jcrben/vscode-js-debug/commit/95b3139ef9c5937a00bc7c9278c9c3ed4cc6aa26 seems to resolve my issue - let me know if you'd accept this as a PR.
roblourens commentedon Jan 3, 2020
'program' should be optional, it is in the current debug adapter. You can send a PR if you'd like.
jcrben commentedon Jan 3, 2020
One more issue:
stopOnEntrydoes not work when the program is unspecified. Reproduced at https://gitlab.com/jcrben-repro/vscode-debugging-repro[-] Cannot run small script[/-][+]Issues when `program` is omitted[/+][-]Issues when `program` is omitted[/-][+]Issues when program' is omitted[/+][-]Issues when program' is omitted[/-][+]Issues when 'program' is omitted[/+]jcrben commentedon Jan 3, 2020
Should I open a new issue for the stopOnEntry thing I mentioned in my last comment?
connor4312 commentedon Jan 3, 2020
I'll reopen this until that gets fixed
[-]Issues when 'program' is omitted[/-][+]stopOnEntry does not work when 'program' is omitted[/+]fix: stopOnEntry not working with omitted program
fix: stopOnEntry not working with omitted program (#210)