Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

debugger does NOT step over all subsequent lines for some breakpoints #230201

Closed
ar-daniel opened this issue Oct 1, 2024 · 2 comments · Fixed by microsoft/vscode-js-debug#2094
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@ar-daniel
Copy link

Does this issue occur when all extensions are disabled?: Yes !

  • VS Code Version: 1.93.1
  • OS Version: linuxmint 21.3 (Virginia)

vscode Version: 1.93.1
Commit: 38c31bc
Date: 2024-09-11T17:20:05.685Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Linux x64 5.15.0-122-generic

installed nodejs version : 20.17.0

Issue :
In debugging, when setting breakpoints at different lines,
sometimes step over( F10) STOPS at a particular line
and continues to complete the remaining program to end without stepping over.
while when setting breakpoint at a different line, works normally

Steps to Reproduce:

  1. created a simple project with contents ( used pnpm init )
    | - src/main.js
    | - package.json

  2. used following code in ./src//main.js
    ( you can use the breakpoints ( one at a time ) at the places mentioned in the comments. )

function firstfunc(arg){
    return arg * arg
}

function secondfunc(arg) {
    return arg * arg * arg
}

const printMessage = (message)=>{
    console.log(message)
}

var a = 5;          // breakpoint here stops at line 15 and skips to complete full program
// const a = firstfunc(2);
a = secondfunc(2);      // breakpoint here stops here itself and skips to complete full program
// const a = secondfunc(2); 
const c = 9;    // breakpoint here works properly and steps through all lines below
var b = secondfunc(c);      // breakpoint below work fine
b = secondfunc(a);

printMessage(b);

console.log('Finished awesome program');
  1. goto 'Run and Debug' section, select 'create a launch.json file'
    used nodejs environment for debugging

in .vscode/launch.json
( removed skipFiles )

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceFolder}/src/main.js"
        }
    ]
}
@roblourens roblourens assigned connor4312 and unassigned roblourens Oct 1, 2024
@connor4312 connor4312 added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Oct 2, 2024
connor4312 added a commit to microsoft/vscode-js-debug that referenced this issue Oct 3, 2024
@connor4312 connor4312 added this to the October 2024 milestone Oct 3, 2024
@ar-daniel
Copy link
Author

ar-daniel commented Oct 12, 2024

The issue still exist in the latest version. I'm just reporting because it says issue closed.

I installed version 1.94.2,
but I still have the issue of the code not stepping over all subsequent lines for some breakpoints
( checked with same breakpoints as in the sample code earlier submitted )

Version: 1.94.2
Commit: 384ff73
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Linux x64 5.15.0-122-generic

In above log, says the patch is sent for October 2024 milestone,
so it only be included after October 31 is completed ?

@connor4312
Copy link
Member

Until our next stable release at the beginning of next month, this is only available on js-debug nightly

@alexr00 alexr00 added the verified Verification succeeded label Oct 24, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 18, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants